當前位置: 首頁>>代碼示例>>Java>>正文


Java EntityWither.func_82212_n方法代碼示例

本文整理匯總了Java中net.minecraft.entity.boss.EntityWither.func_82212_n方法的典型用法代碼示例。如果您正苦於以下問題:Java EntityWither.func_82212_n方法的具體用法?Java EntityWither.func_82212_n怎麽用?Java EntityWither.func_82212_n使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在net.minecraft.entity.boss.EntityWither的用法示例。


在下文中一共展示了EntityWither.func_82212_n方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: preRenderCallback

import net.minecraft.entity.boss.EntityWither; //導入方法依賴的package包/類
/**
 * Allows the render to do any OpenGL state modifications necessary before the model is rendered. Args:
 * entityLiving, partialTickTime
 */
protected void preRenderCallback(EntityWither par1EntityWither, float par2)
{
    int var3 = par1EntityWither.func_82212_n();

    if (var3 > 0)
    {
        float var4 = 2.0F - ((float)var3 - par2) / 220.0F * 0.5F;
        GL11.glScalef(var4, var4, var4);
    }
    else
    {
        GL11.glScalef(2.0F, 2.0F, 2.0F);
    }
}
 
開發者ID:MinecraftModdedClients,項目名稱:Resilience-Client-Source,代碼行數:19,代碼來源:RenderWither.java

示例2: preRenderCallback

import net.minecraft.entity.boss.EntityWither; //導入方法依賴的package包/類
protected void preRenderCallback(EntityWither p_77041_1_, float p_77041_2_)
{
    int i = p_77041_1_.func_82212_n();

    if (i > 0)
    {
        float f1 = 2.0F - ((float)i - p_77041_2_) / 220.0F * 0.5F;
        GL11.glScalef(f1, f1, f1);
    }
    else
    {
        GL11.glScalef(2.0F, 2.0F, 2.0F);
    }
}
 
開發者ID:xtrafrancyz,項目名稱:Cauldron,代碼行數:15,代碼來源:RenderWither.java

示例3: func_82415_a

import net.minecraft.entity.boss.EntityWither; //導入方法依賴的package包/類
protected void func_82415_a(EntityWither p_82415_1_, float p_82415_2_) {
   int var3 = p_82415_1_.func_82212_n();
   if(var3 > 0) {
      float var4 = 2.0F - ((float)var3 - p_82415_2_) / 220.0F * 0.5F;
      GL11.glScalef(var4, var4, var4);
   } else {
      GL11.glScalef(2.0F, 2.0F, 2.0F);
   }

}
 
開發者ID:HATB0T,項目名稱:RuneCraftery,代碼行數:11,代碼來源:RenderWither.java

示例4: func_82415_a

import net.minecraft.entity.boss.EntityWither; //導入方法依賴的package包/類
protected void func_82415_a(EntityWither par1EntityWither, float par2)
{
    int i = par1EntityWither.func_82212_n();

    if (i > 0)
    {
        float f1 = 2.0F - ((float)i - par2) / 220.0F * 0.5F;
        GL11.glScalef(f1, f1, f1);
    }
    else
    {
        GL11.glScalef(2.0F, 2.0F, 2.0F);
    }
}
 
開發者ID:HATB0T,項目名稱:RuneCraftery,代碼行數:15,代碼來源:RenderWither.java

示例5: getEntityTexture

import net.minecraft.entity.boss.EntityWither; //導入方法依賴的package包/類
/**
 * Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture.
 */
protected ResourceLocation getEntityTexture(EntityWither par1EntityWither)
{
    int var2 = par1EntityWither.func_82212_n();
    return var2 > 0 && (var2 > 80 || var2 / 5 % 2 != 1) ? invulnerableWitherTextures : witherTextures;
}
 
開發者ID:MinecraftModdedClients,項目名稱:Resilience-Client-Source,代碼行數:9,代碼來源:RenderWither.java

示例6: getEntityTexture

import net.minecraft.entity.boss.EntityWither; //導入方法依賴的package包/類
protected ResourceLocation getEntityTexture(EntityWither p_110775_1_)
{
    int i = p_110775_1_.func_82212_n();
    return i > 0 && (i > 80 || i / 5 % 2 != 1) ? invulnerableWitherTextures : witherTextures;
}
 
開發者ID:xtrafrancyz,項目名稱:Cauldron,代碼行數:6,代碼來源:RenderWither.java

示例7: func_110911_a

import net.minecraft.entity.boss.EntityWither; //導入方法依賴的package包/類
protected ResourceLocation func_110911_a(EntityWither p_110911_1_) {
   int var2 = p_110911_1_.func_82212_n();
   return var2 > 0 && (var2 > 80 || var2 / 5 % 2 != 1)?field_110913_a:field_110912_f;
}
 
開發者ID:HATB0T,項目名稱:RuneCraftery,代碼行數:5,代碼來源:RenderWither.java

示例8: func_110911_a

import net.minecraft.entity.boss.EntityWither; //導入方法依賴的package包/類
protected ResourceLocation func_110911_a(EntityWither par1EntityWither)
{
    int i = par1EntityWither.func_82212_n();
    return i > 0 && (i > 80 || i / 5 % 2 != 1) ? invulnerableWitherTextures : witherTextures;
}
 
開發者ID:HATB0T,項目名稱:RuneCraftery,代碼行數:6,代碼來源:RenderWither.java


注:本文中的net.minecraft.entity.boss.EntityWither.func_82212_n方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。