当前位置: 首页>>代码示例>>Java>>正文


Java EntityZombie.isVillager方法代码示例

本文整理汇总了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;
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:26,代码来源:RenderZombie.java

示例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;
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:26,代码来源:RenderZombie.java

示例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;
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:16,代码来源:RenderZombie.java

示例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();
		}
}
 
开发者ID:jm-organization,项目名称:connor41-etfuturum2,代码行数:28,代码来源:ServerEventHandler.java

示例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;
    }
}
 
开发者ID:F1r3w477,项目名称:CustomWorldGen,代码行数:15,代码来源:RenderZombie.java

示例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;
}
 
开发者ID:F1r3w477,项目名称:CustomWorldGen,代码行数:16,代码来源:RenderZombie.java

示例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;
    }
}
 
开发者ID:BlazeAxtrius,项目名称:ExpandedRailsMod,代码行数:15,代码来源:RenderZombie.java

示例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);
}
 
开发者ID:asusoda,项目名称:Corundum,代码行数:8,代码来源:HumanZombie.java

示例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;
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:8,代码来源:RenderZombie.java

示例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);
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:8,代码来源:RenderZombie.java

示例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);
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:5,代码来源:RenderZombie.java

示例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);
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:5,代码来源:RenderZombie.java


注:本文中的net.minecraft.entity.monster.EntityZombie.isVillager方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。