本文整理汇总了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);
}