public abstract class LayerArmorBase<T extends ModelBase> extends java.lang.Object implements LayerRenderer<EntityLivingBase>
Modifier and Type | Field and Description |
---|---|
protected static ResourceLocation |
ENCHANTED_ITEM_GLINT_RES |
protected T |
field_177186_d |
protected T |
field_177189_c |
Constructor and Description |
---|
LayerArmorBase(RendererLivingEntity<?> rendererIn) |
Modifier and Type | Method and Description |
---|---|
void |
doRenderLayer(EntityLivingBase entitylivingbaseIn,
float p_177141_2_,
float p_177141_3_,
float partialTicks,
float p_177141_5_,
float p_177141_6_,
float p_177141_7_,
float scale) |
T |
func_177175_a(int p_177175_1_) |
protected abstract void |
func_177179_a(T p_177179_1_,
int p_177179_2_) |
protected T |
getArmorModelHook(EntityLivingBase entity,
ItemStack itemStack,
int slot,
T model)
Hook to allow item-sensitive armor model. for LayerBipedArmor.
|
ResourceLocation |
getArmorResource(Entity entity,
ItemStack stack,
int slot,
java.lang.String type)
More generic ForgeHook version of the above function, it allows for Items to have more control over what texture they provide.
|
ItemStack |
getCurrentArmor(EntityLivingBase entitylivingbaseIn,
int armorSlot) |
protected abstract void |
initArmor() |
boolean |
shouldCombineTextures() |
protected static final ResourceLocation ENCHANTED_ITEM_GLINT_RES
public LayerArmorBase(RendererLivingEntity<?> rendererIn)
public void doRenderLayer(EntityLivingBase entitylivingbaseIn, float p_177141_2_, float p_177141_3_, float partialTicks, float p_177141_5_, float p_177141_6_, float p_177141_7_, float scale)
doRenderLayer
in interface LayerRenderer<EntityLivingBase>
public boolean shouldCombineTextures()
shouldCombineTextures
in interface LayerRenderer<EntityLivingBase>
public ItemStack getCurrentArmor(EntityLivingBase entitylivingbaseIn, int armorSlot)
public T func_177175_a(int p_177175_1_)
protected abstract void initArmor()
protected abstract void func_177179_a(T p_177179_1_, int p_177179_2_)
protected T getArmorModelHook(EntityLivingBase entity, ItemStack itemStack, int slot, T model)
public ResourceLocation getArmorResource(Entity entity, ItemStack stack, int slot, java.lang.String type)
entity
- Entity wearing the armorstack
- ItemStack for the armorslot
- Slot ID that the item is intype
- Subtype, can be null or "overlay"