本文整理汇总了Java中net.minecraft.entity.monster.EntityCreeper.getCreeperFlashIntensity方法的典型用法代码示例。如果您正苦于以下问题:Java EntityCreeper.getCreeperFlashIntensity方法的具体用法?Java EntityCreeper.getCreeperFlashIntensity怎么用?Java EntityCreeper.getCreeperFlashIntensity使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.entity.monster.EntityCreeper
的用法示例。
在下文中一共展示了EntityCreeper.getCreeperFlashIntensity方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getColorMultiplier
import net.minecraft.entity.monster.EntityCreeper; //导入方法依赖的package包/类
/**
* Returns an ARGB int color back. Args: entityLiving, lightBrightness, partialTickTime
*/
protected int getColorMultiplier(EntityCreeper entitylivingbaseIn, float lightBrightness, float partialTickTime)
{
float f = entitylivingbaseIn.getCreeperFlashIntensity(partialTickTime);
if ((int)(f * 10.0F) % 2 == 0)
{
return 0;
}
else
{
int i = (int)(f * 0.2F * 255.0F);
i = MathHelper.clamp_int(i, 0, 255);
return i << 24 | 16777215;
}
}
示例2: getColorMultiplier
import net.minecraft.entity.monster.EntityCreeper; //导入方法依赖的package包/类
/**
* Gets an RGBA int color multiplier to apply.
*/
protected int getColorMultiplier(EntityCreeper entitylivingbaseIn, float lightBrightness, float partialTickTime)
{
float f = entitylivingbaseIn.getCreeperFlashIntensity(partialTickTime);
if ((int)(f * 10.0F) % 2 == 0)
{
return 0;
}
else
{
int i = (int)(f * 0.2F * 255.0F);
i = MathHelper.clamp(i, 0, 255);
return i << 24 | 822083583;
}
}
示例3: getColorMultiplier
import net.minecraft.entity.monster.EntityCreeper; //导入方法依赖的package包/类
/**
* Gets an RGBA int color multiplier to apply.
*/
protected int getColorMultiplier(EntityCreeper entitylivingbaseIn, float lightBrightness, float partialTickTime)
{
float f = entitylivingbaseIn.getCreeperFlashIntensity(partialTickTime);
if ((int)(f * 10.0F) % 2 == 0)
{
return 0;
}
else
{
int i = (int)(f * 0.2F * 255.0F);
i = MathHelper.clamp_int(i, 0, 255);
return i << 24 | 822083583;
}
}
示例4: updateCreeperScale
import net.minecraft.entity.monster.EntityCreeper; //导入方法依赖的package包/类
protected void updateCreeperScale(EntityCreeper par1GCEntityCreeper, float par2)
{
float var4 = par1GCEntityCreeper.getCreeperFlashIntensity(par2);
final float var5 = 1.0F + MathHelper.sin(var4 * 100.0F) * var4 * 0.01F;
if (var4 < 0.0F)
{
var4 = 0.0F;
}
if (var4 > 1.0F)
{
var4 = 1.0F;
}
var4 *= var4;
var4 *= var4;
final float var6 = (1.0F + var4 * 0.4F) * var5;
final float var7 = (1.0F + var4 * 0.1F) / var5;
GL11.glScalef(0.2F + var6, 0.2F + var7, 0.2F + var6);
}
示例5: getColorMultiplier
import net.minecraft.entity.monster.EntityCreeper; //导入方法依赖的package包/类
/**
* Returns an ARGB int color back. Args: entityLiving, lightBrightness, partialTickTime
*/
protected int getColorMultiplier(EntityCreeper entitylivingbaseIn, float lightBrightness, float partialTickTime)
{
float f = entitylivingbaseIn.getCreeperFlashIntensity(partialTickTime);
if ((int)(f * 10.0F) % 2 == 0)
{
return 0;
}
else
{
int i = (int)(f * 0.2F * 255.0F);
i = MathHelper.clamp(i, 0, 255);
return i << 24 | 16777215;
}
}
示例6: preRenderCallback
import net.minecraft.entity.monster.EntityCreeper; //导入方法依赖的package包/类
/**
* Allows the render to do any OpenGL state modifications necessary before the model is rendered. Args:
* entityLiving, partialTickTime
*/
protected void preRenderCallback(EntityCreeper par1EntityCreeper, float par2)
{
float var3 = par1EntityCreeper.getCreeperFlashIntensity(par2);
float var4 = 1.0F + MathHelper.sin(var3 * 100.0F) * var3 * 0.01F;
if (var3 < 0.0F)
{
var3 = 0.0F;
}
if (var3 > 1.0F)
{
var3 = 1.0F;
}
var3 *= var3;
var3 *= var3;
float var5 = (1.0F + var3 * 0.4F) * var4;
float var6 = (1.0F + var3 * 0.1F) / var4;
GL11.glScalef(var5, var6, var5);
}
示例7: preRenderCallback
import net.minecraft.entity.monster.EntityCreeper; //导入方法依赖的package包/类
protected void preRenderCallback(EntityCreeper p_77041_1_, float p_77041_2_)
{
float f1 = p_77041_1_.getCreeperFlashIntensity(p_77041_2_);
float f2 = 1.0F + MathHelper.sin(f1 * 100.0F) * f1 * 0.01F;
if (f1 < 0.0F)
{
f1 = 0.0F;
}
if (f1 > 1.0F)
{
f1 = 1.0F;
}
f1 *= f1;
f1 *= f1;
float f3 = (1.0F + f1 * 0.4F) * f2;
float f4 = (1.0F + f1 * 0.1F) / f2;
GL11.glScalef(f3, f4, f3);
}
示例8: updateCreeperScale
import net.minecraft.entity.monster.EntityCreeper; //导入方法依赖的package包/类
/**
* Updates creeper scale in prerender callback
*/
protected void updateCreeperScale(EntityCreeper par1EntityCreeper, float par2)
{
float f1 = par1EntityCreeper.getCreeperFlashIntensity(par2);
float f2 = 1.0F + MathHelper.sin(f1 * 100.0F) * f1 * 0.01F;
if (f1 < 0.0F)
{
f1 = 0.0F;
}
if (f1 > 1.0F)
{
f1 = 1.0F;
}
f1 *= f1;
f1 *= f1;
float f3 = (1.0F + f1 * 0.4F) * f2;
float f4 = (1.0F + f1 * 0.1F) / f2;
GL11.glScalef(f3, f4, f3);
}
示例9: preRenderCallback
import net.minecraft.entity.monster.EntityCreeper; //导入方法依赖的package包/类
/**
* Allows the render to do any OpenGL state modifications necessary before the model is rendered. Args:
* entityLiving, partialTickTime
*/
protected void preRenderCallback(EntityCreeper entitylivingbaseIn, float partialTickTime)
{
float f = entitylivingbaseIn.getCreeperFlashIntensity(partialTickTime);
float f1 = 1.0F + MathHelper.sin(f * 100.0F) * f * 0.01F;
f = MathHelper.clamp_float(f, 0.0F, 1.0F);
f = f * f;
f = f * f;
float f2 = (1.0F + f * 0.4F) * f1;
float f3 = (1.0F + f * 0.1F) / f1;
GlStateManager.scale(f2, f3, f2);
}
示例10: preRenderCallback
import net.minecraft.entity.monster.EntityCreeper; //导入方法依赖的package包/类
/**
* Allows the render to do state modifications necessary before the model is rendered.
*/
protected void preRenderCallback(EntityCreeper entitylivingbaseIn, float partialTickTime)
{
float f = entitylivingbaseIn.getCreeperFlashIntensity(partialTickTime);
float f1 = 1.0F + MathHelper.sin(f * 100.0F) * f * 0.01F;
f = MathHelper.clamp(f, 0.0F, 1.0F);
f = f * f;
f = f * f;
float f2 = (1.0F + f * 0.4F) * f1;
float f3 = (1.0F + f * 0.1F) / f1;
GlStateManager.scale(f2, f3, f2);
}
示例11: preRenderCallback
import net.minecraft.entity.monster.EntityCreeper; //导入方法依赖的package包/类
/**
* Allows the render to do state modifications necessary before the model is rendered.
*/
protected void preRenderCallback(EntityCreeper entitylivingbaseIn, float partialTickTime)
{
float f = entitylivingbaseIn.getCreeperFlashIntensity(partialTickTime);
float f1 = 1.0F + MathHelper.sin(f * 100.0F) * f * 0.01F;
f = MathHelper.clamp_float(f, 0.0F, 1.0F);
f = f * f;
f = f * f;
float f2 = (1.0F + f * 0.4F) * f1;
float f3 = (1.0F + f * 0.1F) / f1;
GlStateManager.scale(f2, f3, f2);
}
示例12: updateCreeperColorMultiplier
import net.minecraft.entity.monster.EntityCreeper; //导入方法依赖的package包/类
protected int updateCreeperColorMultiplier(EntityCreeper par1GCEntityCreeper, float par2, float par3)
{
final float var5 = par1GCEntityCreeper.getCreeperFlashIntensity(par3);
if ((int) (var5 * 10.0F) % 2 == 0)
{
return 0;
}
else
{
int var6 = (int) (var5 * 0.2F * 255.0F);
if (var6 < 0)
{
var6 = 0;
}
if (var6 > 255)
{
var6 = 255;
}
final short var7 = 255;
final short var8 = 255;
final short var9 = 255;
return var6 << 24 | var7 << 16 | var8 << 8 | var9;
}
}
示例13: preRenderCallback
import net.minecraft.entity.monster.EntityCreeper; //导入方法依赖的package包/类
/**
* Allows the render to do any OpenGL state modifications necessary before the model is rendered. Args:
* entityLiving, partialTickTime
*/
protected void preRenderCallback(EntityCreeper entitylivingbaseIn, float partialTickTime)
{
float f = entitylivingbaseIn.getCreeperFlashIntensity(partialTickTime);
float f1 = 1.0F + MathHelper.sin(f * 100.0F) * f * 0.01F;
f = MathHelper.clamp(f, 0.0F, 1.0F);
f = f * f;
f = f * f;
float f2 = (1.0F + f * 0.4F) * f1;
float f3 = (1.0F + f * 0.1F) / f1;
GlStateManager.scale(f2, f3, f2);
}
示例14: getColorMultiplier
import net.minecraft.entity.monster.EntityCreeper; //导入方法依赖的package包/类
/**
* Returns an ARGB int color back. Args: entityLiving, lightBrightness, partialTickTime
*/
protected int getColorMultiplier(EntityCreeper par1EntityCreeper, float par2, float par3)
{
float var4 = par1EntityCreeper.getCreeperFlashIntensity(par3);
if ((int)(var4 * 10.0F) % 2 == 0)
{
return 0;
}
else
{
int var5 = (int)(var4 * 0.2F * 255.0F);
if (var5 < 0)
{
var5 = 0;
}
if (var5 > 255)
{
var5 = 255;
}
short var6 = 255;
short var7 = 255;
short var8 = 255;
return var5 << 24 | var6 << 16 | var7 << 8 | var8;
}
}
示例15: getColorMultiplier
import net.minecraft.entity.monster.EntityCreeper; //导入方法依赖的package包/类
protected int getColorMultiplier(EntityCreeper p_77030_1_, float p_77030_2_, float p_77030_3_)
{
float f2 = p_77030_1_.getCreeperFlashIntensity(p_77030_3_);
if ((int)(f2 * 10.0F) % 2 == 0)
{
return 0;
}
else
{
int i = (int)(f2 * 0.2F * 255.0F);
if (i < 0)
{
i = 0;
}
if (i > 255)
{
i = 255;
}
short short1 = 255;
short short2 = 255;
short short3 = 255;
return i << 24 | short1 << 16 | short2 << 8 | short3;
}
}