本文整理汇总了Java中net.minecraft.entity.boss.BossStatus.hasColorModifier方法的典型用法代码示例。如果您正苦于以下问题:Java BossStatus.hasColorModifier方法的具体用法?Java BossStatus.hasColorModifier怎么用?Java BossStatus.hasColorModifier使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.entity.boss.BossStatus
的用法示例。
在下文中一共展示了BossStatus.hasColorModifier方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: forceRender
import net.minecraft.entity.boss.BossStatus; //导入方法依赖的package包/类
public void forceRender(Entity ent, double d, double d1, double d2, float f, float f1)
{
float bossHealthScale = BossStatus.healthScale;
int bossStatusBarTime = BossStatus.statusBarTime;
String bossName = BossStatus.bossName;
boolean hasColorModifier = BossStatus.hasColorModifier;
if(RenderManager.instance.renderEngine != null && RenderManager.instance.livingPlayer != null)
{
try
{
entRender.doRender(ent, d, d1, d2, f, f1);
}
catch(Exception e)
{
Morph.console("A morph/model is causing an exception when Morph tries to render it! You might want to report this to the author of the Morphed mob (Not to Morph!)", true);
}
}
BossStatus.healthScale = bossHealthScale;
BossStatus.statusBarTime = bossStatusBarTime;
BossStatus.bossName = bossName;
BossStatus.hasColorModifier = hasColorModifier;
}
示例2: updateRenderer
import net.minecraft.entity.boss.BossStatus; //导入方法依赖的package包/类
/**
* Updates the entity renderer
*/
public void updateRenderer()
{
if (OpenGlHelper.shadersSupported && ShaderLinkHelper.getStaticShaderLinkHelper() == null)
{
ShaderLinkHelper.setNewStaticShaderLinkHelper();
}
this.updateFovModifierHand();
this.updateTorchFlicker();
this.fogColor2 = this.fogColor1;
this.thirdPersonDistanceTemp = this.thirdPersonDistance;
if (this.mc.gameSettings.smoothCamera)
{
float f = this.mc.gameSettings.mouseSensitivity * 0.6F + 0.2F;
float f1 = f * f * f * 8.0F;
this.smoothCamFilterX = this.mouseFilterXAxis.smooth(this.smoothCamYaw, 0.05F * f1);
this.smoothCamFilterY = this.mouseFilterYAxis.smooth(this.smoothCamPitch, 0.05F * f1);
this.smoothCamPartialTicks = 0.0F;
this.smoothCamYaw = 0.0F;
this.smoothCamPitch = 0.0F;
}
else
{
this.smoothCamFilterX = 0.0F;
this.smoothCamFilterY = 0.0F;
this.mouseFilterXAxis.reset();
this.mouseFilterYAxis.reset();
}
if (this.mc.getRenderViewEntity() == null)
{
this.mc.setRenderViewEntity(this.mc.thePlayer);
}
float f3 = this.mc.theWorld.getLightBrightness(new BlockPos(this.mc.getRenderViewEntity()));
float f4 = (float)this.mc.gameSettings.renderDistanceChunks / 32.0F;
float f2 = f3 * (1.0F - f4) + f4;
this.fogColor1 += (f2 - this.fogColor1) * 0.1F;
++this.rendererUpdateCount;
this.itemRenderer.updateEquippedItem();
this.addRainParticles();
this.bossColorModifierPrev = this.bossColorModifier;
if (BossStatus.hasColorModifier)
{
this.bossColorModifier += 0.05F;
if (this.bossColorModifier > 1.0F)
{
this.bossColorModifier = 1.0F;
}
BossStatus.hasColorModifier = false;
}
else if (this.bossColorModifier > 0.0F)
{
this.bossColorModifier -= 0.0125F;
}
}
示例3: updateRenderer
import net.minecraft.entity.boss.BossStatus; //导入方法依赖的package包/类
/**
* Updates the entity renderer
*/
public void updateRenderer()
{
if (OpenGlHelper.shadersSupported && ShaderLinkHelper.getStaticShaderLinkHelper() == null)
{
ShaderLinkHelper.setNewStaticShaderLinkHelper();
}
this.updateFovModifierHand();
this.updateTorchFlicker();
this.fogColor2 = this.fogColor1;
this.thirdPersonDistanceTemp = this.thirdPersonDistance;
if (this.mc.gameSettings.smoothCamera)
{
float f = this.mc.gameSettings.mouseSensitivity * 0.6F + 0.2F;
float f1 = f * f * f * 8.0F;
this.smoothCamFilterX = this.mouseFilterXAxis.smooth(this.smoothCamYaw, 0.05F * f1);
this.smoothCamFilterY = this.mouseFilterYAxis.smooth(this.smoothCamPitch, 0.05F * f1);
this.smoothCamPartialTicks = 0.0F;
this.smoothCamYaw = 0.0F;
this.smoothCamPitch = 0.0F;
}
else
{
this.smoothCamFilterX = 0.0F;
this.smoothCamFilterY = 0.0F;
this.mouseFilterXAxis.reset();
this.mouseFilterYAxis.reset();
}
if (this.mc.getRenderViewEntity() == null)
{
this.mc.setRenderViewEntity(this.mc.thePlayer);
}
Entity entity = this.mc.getRenderViewEntity();
double d0 = entity.posX;
double d1 = entity.posY + (double)entity.getEyeHeight();
double d2 = entity.posZ;
float f3 = this.mc.theWorld.getLightBrightness(new BlockPos(d0, d1, d2));
float f4 = (float)this.mc.gameSettings.renderDistanceChunks / 16.0F;
f4 = MathHelper.clamp_float(f4, 0.0F, 1.0F);
float f2 = f3 * (1.0F - f4) + f4;
this.fogColor1 += (f2 - this.fogColor1) * 0.1F;
++this.rendererUpdateCount;
this.itemRenderer.updateEquippedItem();
this.addRainParticles();
this.bossColorModifierPrev = this.bossColorModifier;
if (BossStatus.hasColorModifier)
{
this.bossColorModifier += 0.05F;
if (this.bossColorModifier > 1.0F)
{
this.bossColorModifier = 1.0F;
}
BossStatus.hasColorModifier = false;
}
else if (this.bossColorModifier > 0.0F)
{
this.bossColorModifier -= 0.0125F;
}
}
示例4: updateRenderer
import net.minecraft.entity.boss.BossStatus; //导入方法依赖的package包/类
/**
* Updates the entity renderer
*/
public void updateRenderer() {
if (OpenGlHelper.shadersSupported && ShaderLinkHelper.getStaticShaderLinkHelper() == null) {
ShaderLinkHelper.setNewStaticShaderLinkHelper();
}
this.updateFovModifierHand();
this.updateTorchFlicker();
this.fogColor2 = this.fogColor1;
this.thirdPersonDistanceTemp = this.thirdPersonDistance;
if (this.mc.gameSettings.smoothCamera) {
float f = this.mc.gameSettings.mouseSensitivity * 0.6F + 0.2F;
float f1 = f * f * f * 8.0F;
this.smoothCamFilterX = this.mouseFilterXAxis.smooth(this.smoothCamYaw, 0.05F * f1);
this.smoothCamFilterY = this.mouseFilterYAxis.smooth(this.smoothCamPitch, 0.05F * f1);
this.smoothCamPartialTicks = 0.0F;
this.smoothCamYaw = 0.0F;
this.smoothCamPitch = 0.0F;
} else {
this.smoothCamFilterX = 0.0F;
this.smoothCamFilterY = 0.0F;
this.mouseFilterXAxis.reset();
this.mouseFilterYAxis.reset();
}
if (this.mc.getRenderViewEntity() == null) {
this.mc.setRenderViewEntity(this.mc.thePlayer);
}
float f3 = this.mc.theWorld.getLightBrightness(new BlockPos(this.mc.getRenderViewEntity()));
float f4 = (float) this.mc.gameSettings.renderDistanceChunks / 32.0F;
float f2 = f3 * (1.0F - f4) + f4;
this.fogColor1 += (f2 - this.fogColor1) * 0.1F;
++this.rendererUpdateCount;
this.itemRenderer.updateEquippedItem();
this.addRainParticles();
this.bossColorModifierPrev = this.bossColorModifier;
if (BossStatus.hasColorModifier) {
this.bossColorModifier += 0.05F;
if (this.bossColorModifier > 1.0F) {
this.bossColorModifier = 1.0F;
}
BossStatus.hasColorModifier = false;
} else if (this.bossColorModifier > 0.0F) {
this.bossColorModifier -= 0.0125F;
}
}
示例5: updateRenderer
import net.minecraft.entity.boss.BossStatus; //导入方法依赖的package包/类
/**
* Updates the entity renderer
*/
public void updateRenderer()
{
if (OpenGlHelper.shadersSupported && ShaderLinkHelper.getStaticShaderLinkHelper() == null)
{
ShaderLinkHelper.setNewStaticShaderLinkHelper();
}
this.updateFovModifierHand();
this.updateTorchFlicker();
this.fogColor2 = this.fogColor1;
this.thirdPersonDistanceTemp = this.thirdPersonDistance;
this.prevDebugCamYaw = this.debugCamYaw;
this.prevDebugCamPitch = this.debugCamPitch;
this.prevDebugCamFOV = this.debugCamFOV;
this.prevCamRoll = this.camRoll;
float var1;
float var2;
if (this.mc.gameSettings.smoothCamera)
{
var1 = this.mc.gameSettings.mouseSensitivity * 0.6F + 0.2F;
var2 = var1 * var1 * var1 * 8.0F;
this.smoothCamFilterX = this.mouseFilterXAxis.smooth(this.smoothCamYaw, 0.05F * var2);
this.smoothCamFilterY = this.mouseFilterYAxis.smooth(this.smoothCamPitch, 0.05F * var2);
this.smoothCamPartialTicks = 0.0F;
this.smoothCamYaw = 0.0F;
this.smoothCamPitch = 0.0F;
}
if (this.mc.renderViewEntity == null)
{
this.mc.renderViewEntity = this.mc.thePlayer;
}
var1 = this.mc.theWorld.getLightBrightness(MathHelper.floor_double(this.mc.renderViewEntity.posX), MathHelper.floor_double(this.mc.renderViewEntity.posY), MathHelper.floor_double(this.mc.renderViewEntity.posZ));
var2 = (float)(this.mc.gameSettings.renderDistanceChunks / 16);
float var3 = var1 * (1.0F - var2) + var2;
this.fogColor1 += (var3 - this.fogColor1) * 0.1F;
++this.rendererUpdateCount;
this.itemRenderer.updateEquippedItem();
this.addRainParticles();
this.bossColorModifierPrev = this.bossColorModifier;
if (BossStatus.hasColorModifier)
{
this.bossColorModifier += 0.05F;
if (this.bossColorModifier > 1.0F)
{
this.bossColorModifier = 1.0F;
}
BossStatus.hasColorModifier = false;
}
else if (this.bossColorModifier > 0.0F)
{
this.bossColorModifier -= 0.0125F;
}
}
示例6: updateRenderer
import net.minecraft.entity.boss.BossStatus; //导入方法依赖的package包/类
public void updateRenderer()
{
if (OpenGlHelper.shadersSupported && ShaderLinkHelper.getStaticShaderLinkHelper() == null)
{
ShaderLinkHelper.setNewStaticShaderLinkHelper();
}
this.updateFovModifierHand();
this.updateTorchFlicker();
this.fogColor2 = this.fogColor1;
this.thirdPersonDistanceTemp = this.thirdPersonDistance;
this.prevDebugCamYaw = this.debugCamYaw;
this.prevDebugCamPitch = this.debugCamPitch;
this.prevDebugCamFOV = this.debugCamFOV;
this.prevCamRoll = this.camRoll;
float f;
float f1;
if (this.mc.gameSettings.smoothCamera)
{
f = this.mc.gameSettings.mouseSensitivity * 0.6F + 0.2F;
f1 = f * f * f * 8.0F;
this.smoothCamFilterX = this.mouseFilterXAxis.smooth(this.smoothCamYaw, 0.05F * f1);
this.smoothCamFilterY = this.mouseFilterYAxis.smooth(this.smoothCamPitch, 0.05F * f1);
this.smoothCamPartialTicks = 0.0F;
this.smoothCamYaw = 0.0F;
this.smoothCamPitch = 0.0F;
}
if (this.mc.renderViewEntity == null)
{
this.mc.renderViewEntity = this.mc.thePlayer;
}
f = this.mc.theWorld.getLightBrightness(MathHelper.floor_double(this.mc.renderViewEntity.posX), MathHelper.floor_double(this.mc.renderViewEntity.posY), MathHelper.floor_double(this.mc.renderViewEntity.posZ));
f1 = (float)this.mc.gameSettings.renderDistanceChunks / 16.0F;
float f2 = f * (1.0F - f1) + f1;
this.fogColor1 += (f2 - this.fogColor1) * 0.1F;
++this.rendererUpdateCount;
this.itemRenderer.updateEquippedItem();
this.addRainParticles();
this.bossColorModifierPrev = this.bossColorModifier;
if (BossStatus.hasColorModifier)
{
this.bossColorModifier += 0.05F;
if (this.bossColorModifier > 1.0F)
{
this.bossColorModifier = 1.0F;
}
BossStatus.hasColorModifier = false;
}
else if (this.bossColorModifier > 0.0F)
{
this.bossColorModifier -= 0.0125F;
}
}