本文整理匯總了Java中net.minecraft.entity.monster.EntityZombie.isVillager方法的典型用法代碼示例。如果您正苦於以下問題:Java EntityZombie.isVillager方法的具體用法?Java EntityZombie.isVillager怎麽用?Java EntityZombie.isVillager使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類net.minecraft.entity.monster.EntityZombie
的用法示例。
在下文中一共展示了EntityZombie.isVillager方法的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: func_82427_a
import net.minecraft.entity.monster.EntityZombie; //導入方法依賴的package包/類
private void func_82427_a(EntityZombie par1EntityZombie)
{
if (par1EntityZombie.isVillager())
{
if (this.field_82431_q != this.zombieVillagerModel.func_82897_a())
{
this.zombieVillagerModel = new ModelZombieVillager();
this.field_82431_q = this.zombieVillagerModel.func_82897_a();
this.field_82436_m = new ModelZombieVillager(1.0F, 0.0F, true);
this.field_82433_n = new ModelZombieVillager(0.5F, 0.0F, true);
}
this.mainModel = this.zombieVillagerModel;
this.field_82423_g = this.field_82436_m;
this.field_82425_h = this.field_82433_n;
}
else
{
this.mainModel = this.field_82434_o;
this.field_82423_g = this.field_82437_k;
this.field_82425_h = this.field_82435_l;
}
this.modelBipedMain = (ModelBiped)this.mainModel;
}
示例2: func_82427_a
import net.minecraft.entity.monster.EntityZombie; //導入方法依賴的package包/類
private void func_82427_a(EntityZombie p_82427_1_)
{
if (p_82427_1_.isVillager())
{
if (this.field_82431_q != this.zombieVillagerModel.func_82897_a())
{
this.zombieVillagerModel = new ModelZombieVillager();
this.field_82431_q = this.zombieVillagerModel.func_82897_a();
this.field_82436_m = new ModelZombieVillager(1.0F, 0.0F, true);
this.field_82433_n = new ModelZombieVillager(0.5F, 0.0F, true);
}
this.mainModel = this.zombieVillagerModel;
this.field_82423_g = this.field_82436_m;
this.field_82425_h = this.field_82433_n;
}
else
{
this.mainModel = this.field_82434_o;
this.field_82423_g = this.field_82437_k;
this.field_82425_h = this.field_82435_l;
}
this.modelBipedMain = (ModelBiped)this.mainModel;
}
示例3: func_82427_a
import net.minecraft.entity.monster.EntityZombie; //導入方法依賴的package包/類
private void func_82427_a(EntityZombie zombie)
{
if (zombie.isVillager())
{
this.mainModel = this.zombieVillagerModel;
this.layerRenderers = this.field_177121_n;
}
else
{
this.mainModel = this.field_82434_o;
this.layerRenderers = this.field_177122_o;
}
this.modelBipedMain = (ModelBiped)this.mainModel;
}
示例4: livingUpdate
import net.minecraft.entity.monster.EntityZombie; //導入方法依賴的package包/類
@SubscribeEvent
public void livingUpdate(LivingUpdateEvent event) {
ModEnchantments.onLivingUpdate(event.entityLiving);
if (EtFuturum.enableVillagerZombies)
if (!event.entityLiving.worldObj.isRemote && event.entityLiving.getClass() == EntityZombie.class) {
EntityZombie zombie = (EntityZombie) event.entityLiving;
if (zombie.isVillager()) {
EntityZombieVillager villagerZombie = new EntityZombieVillager(zombie.worldObj);
villagerZombie.copyLocationAndAnglesFrom(zombie);
villagerZombie.onSpawnWithEgg(null);
villagerZombie.worldObj.spawnEntityInWorld(villagerZombie);
zombie.setDead();
}
}
if (EtFuturum.enableShearableGolems)
if (!event.entityLiving.worldObj.isRemote && event.entityLiving.getClass() == EntitySnowman.class) {
EntityNewSnowGolem golen = new EntityNewSnowGolem(event.entityLiving.worldObj);
golen.copyLocationAndAnglesFrom(event.entityLiving);
golen.onSpawnWithEgg(null);
golen.worldObj.spawnEntityInWorld(golen);
event.entityLiving.setDead();
}
}
示例5: getEntityTexture
import net.minecraft.entity.monster.EntityZombie; //導入方法依賴的package包/類
/**
* Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture.
*/
protected ResourceLocation getEntityTexture(EntityZombie entity)
{
if (entity.isVillager())
{
return entity.getVillagerTypeForge().getZombieSkin();
}
else
{
return entity.getZombieType() == ZombieType.HUSK ? HUSK_ZOMBIE_TEXTURES : ZOMBIE_TEXTURES;
}
}
示例6: swapArmor
import net.minecraft.entity.monster.EntityZombie; //導入方法依賴的package包/類
private void swapArmor(EntityZombie zombie)
{
if (zombie.isVillager())
{
this.mainModel = this.zombieVillagerModel;
this.layerRenderers = this.villagerLayers;
}
else
{
this.mainModel = this.defaultModel;
this.layerRenderers = this.defaultLayers;
}
this.modelBipedMain = (ModelBiped)this.mainModel;
}
示例7: getEntityTexture
import net.minecraft.entity.monster.EntityZombie; //導入方法依賴的package包/類
/**
* Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture.
*/
protected ResourceLocation getEntityTexture(EntityZombie entity)
{
if (entity.isVillager())
{
return entity.getVillagerTypeForge().getZombieSkin();
}
else
{
return entity.func_189777_di() == ZombieType.HUSK ? field_190086_r : ZOMBIE_TEXTURES;
}
}
示例8: fromMC
import net.minecraft.entity.monster.EntityZombie; //導入方法依賴的package包/類
@Override
public I fromMC(EntityZombie entityMC) {
if (!entityMC.isVillager())
return (I) new Zombie(entityMC);
else
return (I) new ZombifiedVillager(entityMC);
}
示例9: getEntityTexture
import net.minecraft.entity.monster.EntityZombie; //導入方法依賴的package包/類
/**
* Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture.
*/
protected ResourceLocation getEntityTexture(EntityZombie entity)
{
return entity.isVillager() ? zombieVillagerTextures : zombieTextures;
}
示例10: getEntityTexture
import net.minecraft.entity.monster.EntityZombie; //導入方法依賴的package包/類
/**
* Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture.
*/
protected ResourceLocation getEntityTexture(EntityZombie par1EntityZombie)
{
return par1EntityZombie instanceof EntityPigZombie ? zombiePigmanTextures : (par1EntityZombie.isVillager() ? zombieVillagerTextures : zombieTextures);
}
示例11: getEntityTexture
import net.minecraft.entity.monster.EntityZombie; //導入方法依賴的package包/類
protected ResourceLocation getEntityTexture(EntityZombie p_110775_1_)
{
return p_110775_1_ instanceof EntityPigZombie ? zombiePigmanTextures : (p_110775_1_.isVillager() ? zombieVillagerTextures : zombieTextures);
}
示例12: func_110863_a
import net.minecraft.entity.monster.EntityZombie; //導入方法依賴的package包/類
protected ResourceLocation func_110863_a(EntityZombie par1EntityZombie)
{
return par1EntityZombie instanceof EntityPigZombie ? zombiePigmanTextures : (par1EntityZombie.isVillager() ? zombieVillagerTextures : zombieTextures);
}