本文整理汇总了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();
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}