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


Java EntityMagmaCube.getSlimeSize方法代码示例

本文整理汇总了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;
  }
}
 
开发者ID:SleepyTrousers,项目名称:EnderZoo,代码行数:24,代码来源:ModelDireSlime.java

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

示例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);
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:11,代码来源:RenderMagmaCube.java

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

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

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


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