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


Java EntityOcelot.isTamed方法代碼示例

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


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

示例1: canMateWith

import net.minecraft.entity.passive.EntityOcelot; //導入方法依賴的package包/類
/**
    * Returns true if the mob is currently able to mate with the specified mob.
    */
   @Override
public boolean canMateWith(EntityAnimal par1EntityAnimal)
   {
       if (par1EntityAnimal == this)
       {
           return false;
       }
       else if (!this.isTamed())
       {
           return false;
       }
       else if (!(par1EntityAnimal instanceof EntityOcelot))
       {
           return false;
       }
       else
       {
           EntityOcelot entityocelot = (EntityOcelot)par1EntityAnimal;
           return !entityocelot.isTamed() ? false : this.isInLove() && entityocelot.isInLove();
       }
   }
 
開發者ID:mookie1097,項目名稱:NausicaaMod,代碼行數:25,代碼來源:EntityFoxSquirrel.java

示例2: preRenderCallback

import net.minecraft.entity.passive.EntityOcelot; //導入方法依賴的package包/類
/**
 * Allows the render to do any OpenGL state modifications necessary before the model is rendered. Args:
 * entityLiving, partialTickTime
 */
protected void preRenderCallback(EntityOcelot entitylivingbaseIn, float partialTickTime)
{
    super.preRenderCallback(entitylivingbaseIn, partialTickTime);

    if (entitylivingbaseIn.isTamed())
    {
        GlStateManager.scale(0.8F, 0.8F, 0.8F);
    }
}
 
開發者ID:Notoh,項目名稱:DecompiledMinecraft,代碼行數:14,代碼來源:RenderOcelot.java

示例3: preRenderCallback

import net.minecraft.entity.passive.EntityOcelot; //導入方法依賴的package包/類
/**
 * Allows the render to do state modifications necessary before the model is rendered.
 */
protected void preRenderCallback(EntityOcelot entitylivingbaseIn, float partialTickTime)
{
    super.preRenderCallback(entitylivingbaseIn, partialTickTime);

    if (entitylivingbaseIn.isTamed())
    {
        GlStateManager.scale(0.8F, 0.8F, 0.8F);
    }
}
 
開發者ID:sudofox,項目名稱:Backmemed,代碼行數:13,代碼來源:RenderOcelot.java

示例4: preRenderCallback

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

    if (par1EntityOcelot.isTamed())
    {
        GL11.glScalef(0.8F, 0.8F, 0.8F);
    }
}
 
開發者ID:MinecraftModdedClients,項目名稱:Resilience-Client-Source,代碼行數:14,代碼來源:RenderOcelot.java

示例5: preRenderCallback

import net.minecraft.entity.passive.EntityOcelot; //導入方法依賴的package包/類
protected void preRenderCallback(EntityOcelot p_77041_1_, float p_77041_2_)
{
    super.preRenderCallback(p_77041_1_, p_77041_2_);

    if (p_77041_1_.isTamed())
    {
        GL11.glScalef(0.8F, 0.8F, 0.8F);
    }
}
 
開發者ID:xtrafrancyz,項目名稱:Cauldron,代碼行數:10,代碼來源:RenderOcelot.java

示例6: preRenderOcelot

import net.minecraft.entity.passive.EntityOcelot; //導入方法依賴的package包/類
/**
 * Pre-Renders the Ocelot.
 */
protected void preRenderOcelot(EntityOcelot par1EntityOcelot, float par2)
{
    super.preRenderCallback(par1EntityOcelot, par2);

    if (par1EntityOcelot.isTamed())
    {
        GL11.glScalef(0.8F, 0.8F, 0.8F);
    }
}
 
開發者ID:HATB0T,項目名稱:RuneCraftery,代碼行數:13,代碼來源:RenderOcelot.java


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