本文整理汇总了Java中net.minecraft.entity.monster.EntityMagmaCube.getSlimeSize方法的典型用法代码示例。如果您正苦于以下问题:Java EntityMagmaCube.getSlimeSize方法的具体用法?Java EntityMagmaCube.getSlimeSize怎么用?Java EntityMagmaCube.getSlimeSize使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.entity.monster.EntityMagmaCube
的用法示例。
在下文中一共展示了EntityMagmaCube.getSlimeSize方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setLivingAnimations
import net.minecraft.entity.monster.EntityMagmaCube; //导入方法依赖的package包/类
@Override
public void setLivingAnimations(EntityLivingBase p_78086_1_, float p_78086_2_, float p_78086_3_, float p_78086_4_) {
EntityMagmaCube entitymagmacube = (EntityMagmaCube) p_78086_1_;
float f3 = entitymagmacube.prevSquishFactor + (entitymagmacube.squishFactor - entitymagmacube.prevSquishFactor) * p_78086_4_;
int size = entitymagmacube.getSlimeSize();
if (f3 < 0.0F) {
f3 = 0.0F;
}
if (size > 1) {
int i = (p_78086_1_.ticksExisted >> 2) % 8;
coreRenderer = coreRenderers[i];
} else {
coreRenderer = coreRendererClay;
}
coreRenderer.rotationPointY = f3 * 1.7F;
for (int i = 0; i < this.sliceRenderers.length; ++i) {
this.sliceRenderers[i].rotationPointY = (-(4 - i)) * f3 * 1.7F;
}
}
示例2: preRenderCallback
import net.minecraft.entity.monster.EntityMagmaCube; //导入方法依赖的package包/类
/**
* Allows the render to do any OpenGL state modifications necessary before the model is rendered. Args:
* entityLiving, partialTickTime
*/
protected void preRenderCallback(EntityMagmaCube entitylivingbaseIn, float partialTickTime)
{
int i = entitylivingbaseIn.getSlimeSize();
float f = (entitylivingbaseIn.prevSquishFactor + (entitylivingbaseIn.squishFactor - entitylivingbaseIn.prevSquishFactor) * partialTickTime) / ((float)i * 0.5F + 1.0F);
float f1 = 1.0F / (f + 1.0F);
float f2 = (float)i;
GlStateManager.scale(f1 * f2, 1.0F / f1 * f2, f1 * f2);
}
示例3: preRenderCallback
import net.minecraft.entity.monster.EntityMagmaCube; //导入方法依赖的package包/类
/**
* Allows the render to do state modifications necessary before the model is rendered.
*/
protected void preRenderCallback(EntityMagmaCube entitylivingbaseIn, float partialTickTime)
{
int i = entitylivingbaseIn.getSlimeSize();
float f = (entitylivingbaseIn.prevSquishFactor + (entitylivingbaseIn.squishFactor - entitylivingbaseIn.prevSquishFactor) * partialTickTime) / ((float)i * 0.5F + 1.0F);
float f1 = 1.0F / (f + 1.0F);
GlStateManager.scale(f1 * (float)i, 1.0F / f1 * (float)i, f1 * (float)i);
}
示例4: preRenderCallback
import net.minecraft.entity.monster.EntityMagmaCube; //导入方法依赖的package包/类
/**
* Allows the render to do any OpenGL state modifications necessary before the model is rendered. Args:
* entityLiving, partialTickTime
*/
protected void preRenderCallback(EntityMagmaCube par1EntityMagmaCube, float par2)
{
int var3 = par1EntityMagmaCube.getSlimeSize();
float var4 = (par1EntityMagmaCube.prevSquishFactor + (par1EntityMagmaCube.squishFactor - par1EntityMagmaCube.prevSquishFactor) * par2) / ((float)var3 * 0.5F + 1.0F);
float var5 = 1.0F / (var4 + 1.0F);
float var6 = (float)var3;
GL11.glScalef(var5 * var6, 1.0F / var5 * var6, var5 * var6);
}
示例5: preRenderCallback
import net.minecraft.entity.monster.EntityMagmaCube; //导入方法依赖的package包/类
protected void preRenderCallback(EntityMagmaCube p_77041_1_, float p_77041_2_)
{
int i = p_77041_1_.getSlimeSize();
float f1 = (p_77041_1_.prevSquishFactor + (p_77041_1_.squishFactor - p_77041_1_.prevSquishFactor) * p_77041_2_) / ((float)i * 0.5F + 1.0F);
float f2 = 1.0F / (f1 + 1.0F);
float f3 = (float)i;
GL11.glScalef(f2 * f3, 1.0F / f2 * f3, f2 * f3);
}
示例6: scaleMagmaCube
import net.minecraft.entity.monster.EntityMagmaCube; //导入方法依赖的package包/类
protected void scaleMagmaCube(EntityMagmaCube par1EntityMagmaCube, float par2)
{
int i = par1EntityMagmaCube.getSlimeSize();
float f1 = (par1EntityMagmaCube.prevSquishFactor + (par1EntityMagmaCube.squishFactor - par1EntityMagmaCube.prevSquishFactor) * par2) / ((float)i * 0.5F + 1.0F);
float f2 = 1.0F / (f1 + 1.0F);
float f3 = (float)i;
GL11.glScalef(f2 * f3, 1.0F / f2 * f3, f2 * f3);
}