当前位置: 首页>>代码示例>>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;未经允许,请勿转载。