Class BipedArmorLayer<T extends LivingEntity,M extends BipedModel<T>,A extends BipedModel<T>>
- java.lang.Object
-
- net.minecraft.client.renderer.entity.layers.LayerRenderer<T,M>
-
- net.minecraft.client.renderer.entity.layers.BipedArmorLayer<T,M,A>
-
public class BipedArmorLayer<T extends LivingEntity,M extends BipedModel<T>,A extends BipedModel<T>> extends LayerRenderer<T,M>
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Map<java.lang.String,ResourceLocation>
ARMOR_LOCATION_CACHE
private A
innerModel
private A
outerModel
-
Constructor Summary
Constructors Constructor Description BipedArmorLayer(IEntityRenderer<T,M> p_i50936_1_, A p_i50936_2_, A p_i50936_3_)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description private ResourceLocation
getArmorLocation(ArmorItem p_241737_1_, boolean p_241737_2_, java.lang.String p_241737_3_)
Deprecated.private A
getArmorModel(EquipmentSlotType p_241736_1_)
protected A
getArmorModelHook(T entity, ItemStack itemStack, EquipmentSlotType slot, A model)
Hook to allow item-sensitive armor model.ResourceLocation
getArmorResource(Entity entity, ItemStack stack, EquipmentSlotType 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.void
render(MatrixStack p_225628_1_, IRenderTypeBuffer p_225628_2_, int p_225628_3_, T p_225628_4_, float p_225628_5_, float p_225628_6_, float p_225628_7_, float p_225628_8_, float p_225628_9_, float p_225628_10_)
private void
renderArmorPiece(MatrixStack p_241739_1_, IRenderTypeBuffer p_241739_2_, T p_241739_3_, EquipmentSlotType p_241739_4_, int p_241739_5_, A p_241739_6_)
private void
renderModel(MatrixStack p_241738_1_, IRenderTypeBuffer p_241738_2_, int p_241738_3_, boolean p_241738_5_, A p_241738_6_, float p_241738_8_, float p_241738_9_, float p_241738_10_, ResourceLocation armorResource)
private void
renderModel(MatrixStack p_241738_1_, IRenderTypeBuffer p_241738_2_, int p_241738_3_, ArmorItem p_241738_4_, boolean p_241738_5_, A p_241738_6_, boolean p_241738_7_, float p_241738_8_, float p_241738_9_, float p_241738_10_, java.lang.String p_241738_11_)
protected void
setPartVisibility(A p_188359_1_, EquipmentSlotType p_188359_2_)
private boolean
usesInnerModel(EquipmentSlotType p_188363_1_)
-
Methods inherited from class net.minecraft.client.renderer.entity.layers.LayerRenderer
coloredCutoutModelCopyLayerRender, getParentModel, getTextureLocation, renderColoredCutoutModel
-
-
-
-
Field Detail
-
ARMOR_LOCATION_CACHE
private static final java.util.Map<java.lang.String,ResourceLocation> ARMOR_LOCATION_CACHE
-
innerModel
private final A extends BipedModel<T> innerModel
-
outerModel
private final A extends BipedModel<T> outerModel
-
-
Constructor Detail
-
BipedArmorLayer
public BipedArmorLayer(IEntityRenderer<T,M> p_i50936_1_, A p_i50936_2_, A p_i50936_3_)
-
-
Method Detail
-
render
public void render(MatrixStack p_225628_1_, IRenderTypeBuffer p_225628_2_, int p_225628_3_, T p_225628_4_, float p_225628_5_, float p_225628_6_, float p_225628_7_, float p_225628_8_, float p_225628_9_, float p_225628_10_)
- Specified by:
render
in classLayerRenderer<T extends LivingEntity,M extends BipedModel<T>>
-
renderArmorPiece
private void renderArmorPiece(MatrixStack p_241739_1_, IRenderTypeBuffer p_241739_2_, T p_241739_3_, EquipmentSlotType p_241739_4_, int p_241739_5_, A p_241739_6_)
-
setPartVisibility
protected void setPartVisibility(A p_188359_1_, EquipmentSlotType p_188359_2_)
-
renderModel
private void renderModel(MatrixStack p_241738_1_, IRenderTypeBuffer p_241738_2_, int p_241738_3_, ArmorItem p_241738_4_, boolean p_241738_5_, A p_241738_6_, boolean p_241738_7_, float p_241738_8_, float p_241738_9_, float p_241738_10_, @Nullable java.lang.String p_241738_11_)
-
renderModel
private void renderModel(MatrixStack p_241738_1_, IRenderTypeBuffer p_241738_2_, int p_241738_3_, boolean p_241738_5_, A p_241738_6_, float p_241738_8_, float p_241738_9_, float p_241738_10_, ResourceLocation armorResource)
-
getArmorModel
private A getArmorModel(EquipmentSlotType p_241736_1_)
-
usesInnerModel
private boolean usesInnerModel(EquipmentSlotType p_188363_1_)
-
getArmorLocation
@Deprecated private ResourceLocation getArmorLocation(ArmorItem p_241737_1_, boolean p_241737_2_, @Nullable java.lang.String p_241737_3_)
Deprecated.
-
getArmorModelHook
protected A getArmorModelHook(T entity, ItemStack itemStack, EquipmentSlotType slot, A model)
Hook to allow item-sensitive armor model. for LayerBipedArmor.
-
getArmorResource
public ResourceLocation getArmorResource(Entity entity, ItemStack stack, EquipmentSlotType slot, @Nullable 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.- Parameters:
entity
- Entity wearing the armorstack
- ItemStack for the armorslot
- Slot ID that the item is intype
- Subtype, can be null or "overlay"- Returns:
- ResourceLocation pointing at the armor's texture
-
-