當前位置: 首頁>>代碼示例>>Java>>正文


Java EntityEnderman.isScreaming方法代碼示例

本文整理匯總了Java中net.minecraft.entity.monster.EntityEnderman.isScreaming方法的典型用法代碼示例。如果您正苦於以下問題:Java EntityEnderman.isScreaming方法的具體用法?Java EntityEnderman.isScreaming怎麽用?Java EntityEnderman.isScreaming使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在net.minecraft.entity.monster.EntityEnderman的用法示例。


在下文中一共展示了EntityEnderman.isScreaming方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: doRender

import net.minecraft.entity.monster.EntityEnderman; //導入方法依賴的package包/類
/**
 * Renders the desired {@code T} type Entity.
 */
public void doRender(EntityEnderman entity, double x, double y, double z, float entityYaw, float partialTicks)
{
    IBlockState iblockstate = entity.getHeldBlockState();
    ModelEnderman modelenderman = this.getMainModel();
    modelenderman.isCarrying = iblockstate != null;
    modelenderman.isAttacking = entity.isScreaming();

    if (entity.isScreaming())
    {
        double d0 = 0.02D;
        x += this.rnd.nextGaussian() * 0.02D;
        z += this.rnd.nextGaussian() * 0.02D;
    }

    super.doRender(entity, x, y, z, entityYaw, partialTicks);
}
 
開發者ID:sudofox,項目名稱:Backmemed,代碼行數:20,代碼來源:RenderEnderman.java

示例2: doRender

import net.minecraft.entity.monster.EntityEnderman; //導入方法依賴的package包/類
/**
 * Renders the desired {@code T} type Entity.
 */
public void doRender(EntityEnderman entity, double x, double y, double z, float entityYaw, float partialTicks)
{
    IBlockState iblockstate = entity.getHeldBlockState();
    this.endermanModel.isCarrying = iblockstate != null;
    this.endermanModel.isAttacking = entity.isScreaming();

    if (entity.isScreaming())
    {
        double d0 = 0.02D;
        x += this.rnd.nextGaussian() * 0.02D;
        z += this.rnd.nextGaussian() * 0.02D;
    }

    super.doRender(entity, x, y, z, entityYaw, partialTicks);
}
 
開發者ID:F1r3w477,項目名稱:CustomWorldGen,代碼行數:19,代碼來源:RenderEnderman.java

示例3: doRender

import net.minecraft.entity.monster.EntityEnderman; //導入方法依賴的package包/類
/**
 * Actually renders the given argument. This is a synthetic bridge method, always casting down its argument and then
 * handing it off to a worker function which does the actual work. In all probabilty, the class Render is generic
 * (Render<T extends Entity>) and this method has signature public void doRender(T entity, double d, double d1,
 * double d2, float f, float f1). But JAD is pre 1.5 so doe
 */
public void doRender(EntityEnderman entity, double x, double y, double z, float entityYaw, float partialTicks)
{
    this.endermanModel.isCarrying = entity.getHeldBlockState().getBlock().getMaterial() != Material.air;
    this.endermanModel.isAttacking = entity.isScreaming();

    if (entity.isScreaming())
    {
        double d0 = 0.02D;
        x += this.rnd.nextGaussian() * d0;
        z += this.rnd.nextGaussian() * d0;
    }

    super.doRender(entity, x, y, z, entityYaw, partialTicks);
}
 
開發者ID:Notoh,項目名稱:DecompiledMinecraft,代碼行數:21,代碼來源:RenderEnderman.java

示例4: doRender

import net.minecraft.entity.monster.EntityEnderman; //導入方法依賴的package包/類
/**
 * Actually renders the given argument. This is a synthetic bridge method, always casting down its argument and then
 * handing it off to a worker function which does the actual work. In all probabilty, the class Render is generic
 * (Render<T extends Entity) and this method has signature public void doRender(T entity, double d, double d1,
 * double d2, float f, float f1). But JAD is pre 1.5 so doesn't do that.
 */
public void doRender(EntityEnderman par1EntityEnderman, double par2, double par4, double par6, float par8, float par9)
{
    this.endermanModel.isCarrying = par1EntityEnderman.func_146080_bZ().getMaterial() != Material.air;
    this.endermanModel.isAttacking = par1EntityEnderman.isScreaming();

    if (par1EntityEnderman.isScreaming())
    {
        double var10 = 0.02D;
        par2 += this.rnd.nextGaussian() * var10;
        par6 += this.rnd.nextGaussian() * var10;
    }

    super.doRender((EntityLiving)par1EntityEnderman, par2, par4, par6, par8, par9);
}
 
開發者ID:MinecraftModdedClients,項目名稱:Resilience-Client-Source,代碼行數:21,代碼來源:RenderEnderman.java

示例5: doRender

import net.minecraft.entity.monster.EntityEnderman; //導入方法依賴的package包/類
public void doRender(EntityEnderman p_76986_1_, double p_76986_2_, double p_76986_4_, double p_76986_6_, float p_76986_8_, float p_76986_9_)
{
    this.endermanModel.isCarrying = p_76986_1_.func_146080_bZ().getMaterial() != Material.air;
    this.endermanModel.isAttacking = p_76986_1_.isScreaming();

    if (p_76986_1_.isScreaming())
    {
        double d3 = 0.02D;
        p_76986_2_ += this.rnd.nextGaussian() * d3;
        p_76986_6_ += this.rnd.nextGaussian() * d3;
    }

    super.doRender((EntityLiving)p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
}
 
開發者ID:xtrafrancyz,項目名稱:Cauldron,代碼行數:15,代碼來源:RenderEnderman.java

示例6: renderEnderman

import net.minecraft.entity.monster.EntityEnderman; //導入方法依賴的package包/類
/**
 * Renders the enderman
 */
public void renderEnderman(EntityEnderman par1EntityEnderman, double par2, double par4, double par6, float par8, float par9)
{
    this.endermanModel.isCarrying = par1EntityEnderman.getCarried() > 0;
    this.endermanModel.isAttacking = par1EntityEnderman.isScreaming();

    if (par1EntityEnderman.isScreaming())
    {
        double d3 = 0.02D;
        par2 += this.rnd.nextGaussian() * d3;
        par6 += this.rnd.nextGaussian() * d3;
    }

    super.doRenderLiving(par1EntityEnderman, par2, par4, par6, par8, par9);
}
 
開發者ID:HATB0T,項目名稱:RuneCraftery,代碼行數:18,代碼來源:RenderEnderman.java

示例7: getPupilScale

import net.minecraft.entity.monster.EntityEnderman; //導入方法依賴的package包/類
@Override
public float getPupilScale(EntityEnderman living, float partialTick, int eye)
{
    if(living.isScreaming())
    {
        return 0.4F;
    }
    return super.getPupilScale(living, partialTick, eye);
}
 
開發者ID:iChun,項目名稱:iChunUtil,代碼行數:10,代碼來源:HeadEnderman.java

示例8: getMobTypeUnchecked

import net.minecraft.entity.monster.EntityEnderman; //導入方法依賴的package包/類
@Override
protected MobTypeEnum getMobTypeUnchecked(Entity entity) {
    EntityEnderman enderman = (EntityEnderman)entity;
    return enderman.isScreaming() ? MobTypeEnum.HOSTILE : MobTypeEnum.NEUTRAL;
}
 
開發者ID:fr1kin,項目名稱:ForgeHax,代碼行數:6,代碼來源:EndermanMob.java


注:本文中的net.minecraft.entity.monster.EntityEnderman.isScreaming方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。