Class HumanoidArmorLayer<T extends LivingEntity,M extends HumanoidModel<T>,A extends HumanoidModel<T>>  
java.lang.Object
net.minecraft.client.renderer.entity.layers.RenderLayer<T,M>
 
net.minecraft.client.renderer.entity.layers.HumanoidArmorLayer<T,M,A>  
public class HumanoidArmorLayer<T extends LivingEntity,M extends HumanoidModel<T>,A extends HumanoidModel<T>>  
extends RenderLayer<T,M> 
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final Map<String,ResourceLocation> private final TextureAtlasprivate final Aprivate final A
- 
Constructor SummaryConstructorsConstructorDescriptionHumanoidArmorLayer(RenderLayerParent<T, M> p_267286_, A p_267110_, A p_267150_, ModelManager p_267238_) 
- 
Method SummaryModifier and TypeMethodDescriptionprivate ResourceLocationgetArmorLocation(ArmorItem p_117081_, boolean p_117082_, String p_117083_) Deprecated.private AgetArmorModel(EquipmentSlot p_117079_) protected ModelgetArmorModelHook(T entity, ItemStack itemStack, EquipmentSlot slot, A model) Hook to allow item-sensitive armor model. for HumanoidArmorLayer.getArmorResource(Entity entity, ItemStack stack, EquipmentSlot slot, String type) More generic ForgeHook version of the above function, it allows for Items to have more control over what texture they provide.voidrender(PoseStack p_117096_, MultiBufferSource p_117097_, int p_117098_, T p_117099_, float p_117100_, float p_117101_, float p_117102_, float p_117103_, float p_117104_, float p_117105_) private voidrenderArmorPiece(PoseStack p_117119_, MultiBufferSource p_117120_, T p_117121_, EquipmentSlot p_117122_, int p_117123_, A p_117124_) private voidrenderGlint(PoseStack p_289673_, MultiBufferSource p_289654_, int p_289649_, A p_289659_) private voidrenderGlint(PoseStack p_289673_, MultiBufferSource p_289654_, int p_289649_, Model p_289659_) private voidrenderModel(PoseStack p_289664_, MultiBufferSource p_289689_, int p_289681_, ArmorItem p_289650_, A p_289658_, boolean p_289668_, float p_289678_, float p_289674_, float p_289693_, String p_289682_) private voidrenderModel(PoseStack p_289664_, MultiBufferSource p_289689_, int p_289681_, ArmorItem p_289650_, Model p_289658_, boolean p_289668_, float p_289678_, float p_289674_, float p_289693_, ResourceLocation armorResource) private voidrenderTrim(ArmorMaterial p_289690_, PoseStack p_289687_, MultiBufferSource p_289643_, int p_289683_, ArmorTrim p_289692_, A p_289663_, boolean p_289651_) private voidrenderTrim(ArmorMaterial p_289690_, PoseStack p_289687_, MultiBufferSource p_289643_, int p_289683_, ArmorTrim p_289692_, Model p_289663_, boolean p_289651_) protected voidsetPartVisibility(A p_117126_, EquipmentSlot p_117127_) private booleanusesInnerModel(EquipmentSlot p_117129_) Methods inherited from class net.minecraft.client.renderer.entity.layers.RenderLayercoloredCutoutModelCopyLayerRender, getParentModel, getTextureLocation, renderColoredCutoutModel
- 
Field Details- 
ARMOR_LOCATION_CACHE
- 
innerModel
- 
outerModel
- 
armorTrimAtlas
 
- 
- 
Constructor Details- 
HumanoidArmorLayerpublic HumanoidArmorLayer(RenderLayerParent<T, M> p_267286_, A p_267110_, A p_267150_, ModelManager p_267238_) 
 
- 
- 
Method Details- 
renderpublic void render(PoseStack p_117096_, MultiBufferSource p_117097_, int p_117098_, T p_117099_, float p_117100_, float p_117101_, float p_117102_, float p_117103_, float p_117104_, float p_117105_) - Specified by:
- renderin class- RenderLayer<T extends LivingEntity,- M extends HumanoidModel<T>> 
 
- 
renderArmorPieceprivate void renderArmorPiece(PoseStack p_117119_, MultiBufferSource p_117120_, T p_117121_, EquipmentSlot p_117122_, int p_117123_, A p_117124_) 
- 
setPartVisibility
- 
renderModelprivate void renderModel(PoseStack p_289664_, MultiBufferSource p_289689_, int p_289681_, ArmorItem p_289650_, A p_289658_, boolean p_289668_, float p_289678_, float p_289674_, float p_289693_, @Nullable String p_289682_) 
- 
renderModelprivate void renderModel(PoseStack p_289664_, MultiBufferSource p_289689_, int p_289681_, ArmorItem p_289650_, Model p_289658_, boolean p_289668_, float p_289678_, float p_289674_, float p_289693_, ResourceLocation armorResource) 
- 
renderTrimprivate void renderTrim(ArmorMaterial p_289690_, PoseStack p_289687_, MultiBufferSource p_289643_, int p_289683_, ArmorTrim p_289692_, A p_289663_, boolean p_289651_) 
- 
renderTrimprivate void renderTrim(ArmorMaterial p_289690_, PoseStack p_289687_, MultiBufferSource p_289643_, int p_289683_, ArmorTrim p_289692_, Model p_289663_, boolean p_289651_) 
- 
renderGlintprivate void renderGlint(PoseStack p_289673_, MultiBufferSource p_289654_, int p_289649_, A p_289659_) 
- 
renderGlintprivate void renderGlint(PoseStack p_289673_, MultiBufferSource p_289654_, int p_289649_, Model p_289659_) 
- 
getArmorModel
- 
usesInnerModel
- 
getArmorLocation@Deprecated private ResourceLocation getArmorLocation(ArmorItem p_117081_, boolean p_117082_, @Nullable String p_117083_) Deprecated.
- 
getArmorModelHookHook to allow item-sensitive armor model. for HumanoidArmorLayer.
- 
getArmorResourcepublic ResourceLocation getArmorResource(Entity entity, ItemStack stack, EquipmentSlot slot, @Nullable 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 armor
- stack- ItemStack for the armor
- slot- Slot ID that the item is in
- type- Subtype, can be null or "overlay"
- Returns:
- ResourceLocation pointing at the armor's texture
 
 
-