當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。