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


Java EntityOcelot.getTameSkin方法代碼示例

本文整理匯總了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;
    }
}
 
開發者ID:Notoh,項目名稱:DecompiledMinecraft,代碼行數:22,代碼來源:RenderOcelot.java

示例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;
    }
}
 
開發者ID:sudofox,項目名稱:Backmemed,代碼行數:22,代碼來源:RenderOcelot.java

示例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;
    }
}
 
開發者ID:F1r3w477,項目名稱:CustomWorldGen,代碼行數:19,代碼來源:RenderOcelot.java

示例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;
    }
}
 
開發者ID:MinecraftModdedClients,項目名稱:Resilience-Client-Source,代碼行數:22,代碼來源:RenderOcelot.java

示例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;
    }
}
 
開發者ID:xtrafrancyz,項目名稱:Cauldron,代碼行數:16,代碼來源:RenderOcelot.java

示例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;
    }
}
 
開發者ID:HATB0T,項目名稱:RuneCraftery,代碼行數:16,代碼來源:RenderOcelot.java


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