本文整理匯總了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);
}
}