本文整理汇总了Java中net.minecraft.entity.boss.BossStatus.setBossStatus方法的典型用法代码示例。如果您正苦于以下问题:Java BossStatus.setBossStatus方法的具体用法?Java BossStatus.setBossStatus怎么用?Java BossStatus.setBossStatus使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.entity.boss.BossStatus
的用法示例。
在下文中一共展示了BossStatus.setBossStatus方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: shouldSlimeRenderPass
import net.minecraft.entity.boss.BossStatus; //导入方法依赖的package包/类
/**
* Determines whether Slime Render should pass or not.
*/
protected int shouldSlimeRenderPass(EntityKingKotek par1EntitySlime, int par2, float par3){
BossStatus.setBossStatus(par1EntitySlime, false);
if (par1EntitySlime.isInvisible()){
return 0;
}
else if (par2 == 0){
this.setRenderPassModel(this.scaleAmount);
GL11.glEnable(GL11.GL_NORMALIZE);
GL11.glEnable(GL11.GL_BLEND);
GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
return 1;
}
else{
if (par2 == 1){
GL11.glDisable(GL11.GL_BLEND);
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
}
return -1;
}
}
示例2: doRender
import net.minecraft.entity.boss.BossStatus; //导入方法依赖的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(EntityDragon entity, double x, double y, double z, float entityYaw, float partialTicks)
{
BossStatus.setBossStatus(entity, false);
super.doRender(entity, x, y, z, entityYaw, partialTicks);
if (entity.healingEnderCrystal != null)
{
this.drawRechargeRay(entity, x, y, z, partialTicks);
}
}
示例3: doRender
import net.minecraft.entity.boss.BossStatus; //导入方法依赖的package包/类
@Override
public void doRender(EntityLiving par1EntityLiving, double par2, double par4, double par6, float par8, float par9)
{
BossStatus.setBossStatus((IBossDisplayData) par1EntityLiving, false);
super.doRender(par1EntityLiving, par2, par4, par6, par8, par9);
}
示例4: doRender
import net.minecraft.entity.boss.BossStatus; //导入方法依赖的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(EntityWither par1EntityWither, double par2, double par4, double par6, float par8, float par9)
{
BossStatus.setBossStatus(par1EntityWither, true);
int var10 = ((ModelWither)this.mainModel).func_82903_a();
if (var10 != this.field_82419_a)
{
this.field_82419_a = var10;
this.mainModel = new ModelWither();
}
super.doRender((EntityLiving)par1EntityWither, par2, par4, par6, par8, par9);
}
示例5: doRender
import net.minecraft.entity.boss.BossStatus; //导入方法依赖的package包/类
public void doRender(EntityWither p_76986_1_, double p_76986_2_, double p_76986_4_, double p_76986_6_, float p_76986_8_, float p_76986_9_)
{
BossStatus.setBossStatus(p_76986_1_, true);
int i = ((ModelWither)this.mainModel).func_82903_a();
if (i != this.field_82419_a)
{
this.field_82419_a = i;
this.mainModel = new ModelWither();
}
super.doRender((EntityLiving)p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
}
示例6: doRender
import net.minecraft.entity.boss.BossStatus; //导入方法依赖的package包/类
@Override
public void doRender(EntityLiving entity, double dx, double dy, double dz, float yaw, float partialTick) {
if (entity instanceof IBossDisplayData) {
BossStatus.setBossStatus((IBossDisplayData) entity, true);
}
super.doRender(entity, dx, dy, dz, yaw, partialTick);
}
示例7: doRender
import net.minecraft.entity.boss.BossStatus; //导入方法依赖的package包/类
@Override
public void doRender(EntityWizzrobe entity, double dx, double dy, double dz, float yaw, float partialTick) {
if (entity instanceof IBossDisplayData) {
BossStatus.setBossStatus((IBossDisplayData) entity, true);
}
super.doRender(entity, dx, dy, dz, yaw, partialTick);
if (model.atPeak) {
renderSpell(entity, dx, dy, dz, yaw, partialTick);
}
}
示例8: func_82418_a
import net.minecraft.entity.boss.BossStatus; //导入方法依赖的package包/类
public void func_82418_a(EntityWither par1EntityWither, double par2, double par4, double par6, float par8, float par9)
{
BossStatus.setBossStatus(par1EntityWither, true);
int i = ((ModelWither)this.mainModel).func_82903_a();
if (i != this.field_82419_a)
{
this.field_82419_a = i;
this.mainModel = new ModelWither();
}
super.doRenderLiving(par1EntityWither, par2, par4, par6, par8, par9);
}
示例9: doRender
import net.minecraft.entity.boss.BossStatus; //导入方法依赖的package包/类
@Override
public void doRender(EntityLiving e, double x, double y, double z, float rotationYaw, float rotationPitch)
{
BossStatus.setBossStatus((EntityBossOrc) e, true);
super.doRender(e, x, y, z, rotationYaw, rotationPitch);
}
示例10: doRender
import net.minecraft.entity.boss.BossStatus; //导入方法依赖的package包/类
@Override
public void doRender(EntityLiving e, double x, double y, double z, float rotationYaw, float rotationPitch)
{
BossStatus.setBossStatus((EntityArkavon) e, true);
super.doRender(e, x, y, z, rotationYaw, rotationPitch);
}
示例11: doRender
import net.minecraft.entity.boss.BossStatus; //导入方法依赖的package包/类
@Override
public void doRender(EntityLiving e, double x, double y, double z, float rotationYaw, float rotationPitch)
{
BossStatus.setBossStatus((EntityChevalier) e, true);
super.doRender(e, x, y, z, rotationYaw, rotationPitch);
}
示例12: doRender
import net.minecraft.entity.boss.BossStatus; //导入方法依赖的package包/类
@Override
public void doRender(Entity ent, double cameraX, double cameraY, double cameraZ, float yaw, float partial) {
ColossusController controller = (ColossusController) ent;
BossStatus.setBossStatus(controller, false);
}
示例13: doRender
import net.minecraft.entity.boss.BossStatus; //导入方法依赖的package包/类
public void doRender(EntityHoeHoeMan entity,double d0,double d1,double d2,float f0,float f1){
BossStatus.setBossStatus(entity,false);
super.doRender((EntityLiving)entity,d0,d1,d2,f0,f1);
}
示例14: doRender
import net.minecraft.entity.boss.BossStatus; //导入方法依赖的package包/类
public void doRender(DemoEntityBoss entity, double x, double y, double z, float p_76986_8_, float partialTicks) {
BossStatus.setBossStatus(entity, true);
super.doRender(entity, x, y, z, p_76986_8_, partialTicks);
}
示例15: doRender
import net.minecraft.entity.boss.BossStatus; //导入方法依赖的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(EntityDragon par1EntityDragon, double par2, double par4, double par6, float par8, float par9)
{
BossStatus.setBossStatus(par1EntityDragon, false);
super.doRender((EntityLiving)par1EntityDragon, par2, par4, par6, par8, par9);
if (par1EntityDragon.healingEnderCrystal != null)
{
float var10 = (float)par1EntityDragon.healingEnderCrystal.innerRotation + par9;
float var11 = MathHelper.sin(var10 * 0.2F) / 2.0F + 0.5F;
var11 = (var11 * var11 + var11) * 0.2F;
float var12 = (float)(par1EntityDragon.healingEnderCrystal.posX - par1EntityDragon.posX - (par1EntityDragon.prevPosX - par1EntityDragon.posX) * (double)(1.0F - par9));
float var13 = (float)((double)var11 + par1EntityDragon.healingEnderCrystal.posY - 1.0D - par1EntityDragon.posY - (par1EntityDragon.prevPosY - par1EntityDragon.posY) * (double)(1.0F - par9));
float var14 = (float)(par1EntityDragon.healingEnderCrystal.posZ - par1EntityDragon.posZ - (par1EntityDragon.prevPosZ - par1EntityDragon.posZ) * (double)(1.0F - par9));
float var15 = MathHelper.sqrt_float(var12 * var12 + var14 * var14);
float var16 = MathHelper.sqrt_float(var12 * var12 + var13 * var13 + var14 * var14);
GL11.glPushMatrix();
GL11.glTranslatef((float)par2, (float)par4 + 2.0F, (float)par6);
GL11.glRotatef((float)(-Math.atan2((double)var14, (double)var12)) * 180.0F / (float)Math.PI - 90.0F, 0.0F, 1.0F, 0.0F);
GL11.glRotatef((float)(-Math.atan2((double)var15, (double)var13)) * 180.0F / (float)Math.PI - 90.0F, 1.0F, 0.0F, 0.0F);
Tessellator var17 = Tessellator.instance;
RenderHelper.disableStandardItemLighting();
GL11.glDisable(GL11.GL_CULL_FACE);
this.bindTexture(enderDragonCrystalBeamTextures);
GL11.glShadeModel(GL11.GL_SMOOTH);
float var18 = 0.0F - ((float)par1EntityDragon.ticksExisted + par9) * 0.01F;
float var19 = MathHelper.sqrt_float(var12 * var12 + var13 * var13 + var14 * var14) / 32.0F - ((float)par1EntityDragon.ticksExisted + par9) * 0.01F;
var17.startDrawing(5);
byte var20 = 8;
for (int var21 = 0; var21 <= var20; ++var21)
{
float var22 = MathHelper.sin((float)(var21 % var20) * (float)Math.PI * 2.0F / (float)var20) * 0.75F;
float var23 = MathHelper.cos((float)(var21 % var20) * (float)Math.PI * 2.0F / (float)var20) * 0.75F;
float var24 = (float)(var21 % var20) * 1.0F / (float)var20;
var17.setColorOpaque_I(0);
var17.addVertexWithUV((double)(var22 * 0.2F), (double)(var23 * 0.2F), 0.0D, (double)var24, (double)var19);
var17.setColorOpaque_I(16777215);
var17.addVertexWithUV((double)var22, (double)var23, (double)var16, (double)var24, (double)var18);
}
var17.draw();
GL11.glEnable(GL11.GL_CULL_FACE);
GL11.glShadeModel(GL11.GL_FLAT);
RenderHelper.enableStandardItemLighting();
GL11.glPopMatrix();
}
}