本文整理匯總了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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_);
}
示例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);
}
示例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);
}
示例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;
}