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


Java BossStatus.setBossStatus方法代码示例

本文整理汇总了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;
}
   }
 
开发者ID:OwnAgePau,项目名称:Soul-Forest,代码行数:25,代码来源:RenderKingKotek.java

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

示例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);
}
 
开发者ID:4Space,项目名称:4Space-5,代码行数:8,代码来源:RenderCreeperBoss.java

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

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

示例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);
}
 
开发者ID:coolAlias,项目名称:ZeldaSwordSkills,代码行数:8,代码来源:RenderGenericLiving.java

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

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

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

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

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

示例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);
}
 
开发者ID:purpleposeidon,项目名称:Factorization,代码行数:6,代码来源:ColossusControllerRenderer.java

示例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);
}
 
开发者ID:Team-Antimatter-Mod,项目名称:AntiMatterMod,代码行数:5,代码来源:RenderHoeHoeMan.java

示例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);
}
 
开发者ID:worldwidewoogie,项目名称:demomod,代码行数:5,代码来源:DemoRenderBoss.java

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


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