本文整理匯總了Java中net.minecraft.entity.passive.EntityOcelot.getTameSkin方法的典型用法代碼示例。如果您正苦於以下問題:Java EntityOcelot.getTameSkin方法的具體用法?Java EntityOcelot.getTameSkin怎麽用?Java EntityOcelot.getTameSkin使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類net.minecraft.entity.passive.EntityOcelot
的用法示例。
在下文中一共展示了EntityOcelot.getTameSkin方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getEntityTexture
import net.minecraft.entity.passive.EntityOcelot; //導入方法依賴的package包/類
/**
* Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture.
*/
protected ResourceLocation getEntityTexture(EntityOcelot entity)
{
switch (entity.getTameSkin())
{
case 0:
default:
return ocelotTextures;
case 1:
return blackOcelotTextures;
case 2:
return redOcelotTextures;
case 3:
return siameseOcelotTextures;
}
}
示例2: getEntityTexture
import net.minecraft.entity.passive.EntityOcelot; //導入方法依賴的package包/類
/**
* Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture.
*/
protected ResourceLocation getEntityTexture(EntityOcelot entity)
{
switch (entity.getTameSkin())
{
case 0:
default:
return OCELOT_TEXTURES;
case 1:
return BLACK_OCELOT_TEXTURES;
case 2:
return RED_OCELOT_TEXTURES;
case 3:
return SIAMESE_OCELOT_TEXTURES;
}
}
示例3: getEntityTexture
import net.minecraft.entity.passive.EntityOcelot; //導入方法依賴的package包/類
/**
* Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture.
*/
protected ResourceLocation getEntityTexture(EntityOcelot entity)
{
switch (entity.getTameSkin())
{
case 0:
default:
return OCELOT_TEXTURES;
case 1:
return BLACK_OCELOT_TEXTURES;
case 2:
return RED_OCELOT_TEXTURES;
case 3:
return SIAMESE_OCELOT_TEXTURES;
}
}
示例4: getEntityTexture
import net.minecraft.entity.passive.EntityOcelot; //導入方法依賴的package包/類
/**
* Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture.
*/
protected ResourceLocation getEntityTexture(EntityOcelot par1EntityOcelot)
{
switch (par1EntityOcelot.getTameSkin())
{
case 0:
default:
return ocelotTextures;
case 1:
return blackOcelotTextures;
case 2:
return redOcelotTextures;
case 3:
return siameseOcelotTextures;
}
}
示例5: getEntityTexture
import net.minecraft.entity.passive.EntityOcelot; //導入方法依賴的package包/類
protected ResourceLocation getEntityTexture(EntityOcelot p_110775_1_)
{
switch (p_110775_1_.getTameSkin())
{
case 0:
default:
return ocelotTextures;
case 1:
return blackOcelotTextures;
case 2:
return redOcelotTextures;
case 3:
return siameseOcelotTextures;
}
}
示例6: func_110874_a
import net.minecraft.entity.passive.EntityOcelot; //導入方法依賴的package包/類
protected ResourceLocation func_110874_a(EntityOcelot par1EntityOcelot)
{
switch (par1EntityOcelot.getTameSkin())
{
case 0:
default:
return ocelotTextures;
case 1:
return blackOcelotTextures;
case 2:
return redOcelotTextures;
case 3:
return siameseOcelotTextures;
}
}