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 Summary
FieldsModifier and TypeFieldDescriptionprivate static final Map
<String, ResourceLocation> private final TextureAtlas
private final A
private final A
-
Constructor Summary
ConstructorsConstructorDescriptionHumanoidArmorLayer
(RenderLayerParent<T, M> pRenderer, A pInnerModel, A pOuterModel, ModelManager pModelManager) -
Method Summary
Modifier and TypeMethodDescriptionprivate A
getArmorModel
(EquipmentSlot pSlot) protected Model
getArmorModelHook
(T entity, ItemStack itemStack, EquipmentSlot slot, A model) Hook to allow item-sensitive armor model. for HumanoidArmorLayer.void
render
(PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight, T pLivingEntity, float pLimbSwing, float pLimbSwingAmount, float pPartialTicks, float pAgeInTicks, float pNetHeadYaw, float pHeadPitch) private void
renderArmorPiece
(PoseStack pPoseStack, MultiBufferSource pBufferSource, T pLivingEntity, EquipmentSlot pSlot, int pPackedLight, A pModel) Deprecated.private void
renderArmorPiece
(PoseStack pPoseStack, MultiBufferSource pBufferSource, T pLivingEntity, EquipmentSlot pSlot, int pPackedLight, A pModel, float limbSwing, float limbSwingAmount, float partialTick, float ageInTicks, float netHeadYaw, float headPitch) private void
renderGlint
(PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, A pModel) private void
renderGlint
(PoseStack p_289673_, MultiBufferSource p_289654_, int p_289649_, Model p_289659_) private void
renderModel
(PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, A pModel, int pDyeColor, ResourceLocation pTextureLocation) private void
renderModel
(PoseStack p_289664_, MultiBufferSource p_289689_, int p_289681_, Model p_289658_, int p_350798_, ResourceLocation p_324344_) private void
renderTrim
(Holder<ArmorMaterial> pArmorMaterial, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, ArmorTrim pTrim, A pModel, boolean pInnerTexture) private void
renderTrim
(Holder<ArmorMaterial> p_323506_, PoseStack p_289687_, MultiBufferSource p_289643_, int p_289683_, ArmorTrim p_289692_, Model p_289663_, boolean p_289651_) protected void
setPartVisibility
(A pModel, EquipmentSlot pSlot) private boolean
usesInnerModel
(EquipmentSlot pSlot) Methods inherited from class net.minecraft.client.renderer.entity.layers.RenderLayer
coloredCutoutModelCopyLayerRender, getParentModel, getTextureLocation, renderColoredCutoutModel
-
Field Details
-
ARMOR_LOCATION_CACHE
-
innerModel
-
outerModel
-
armorTrimAtlas
-
-
Constructor Details
-
HumanoidArmorLayer
public HumanoidArmorLayer(RenderLayerParent<T, M> pRenderer, A pInnerModel, A pOuterModel, ModelManager pModelManager)
-
-
Method Details
-
render
public void render(PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight, T pLivingEntity, float pLimbSwing, float pLimbSwingAmount, float pPartialTicks, float pAgeInTicks, float pNetHeadYaw, float pHeadPitch) - Specified by:
render
in classRenderLayer<T extends LivingEntity,
M extends HumanoidModel<T>>
-
renderArmorPiece
@Deprecated private void renderArmorPiece(PoseStack pPoseStack, MultiBufferSource pBufferSource, T pLivingEntity, EquipmentSlot pSlot, int pPackedLight, A pModel) -
renderArmorPiece
private void renderArmorPiece(PoseStack pPoseStack, MultiBufferSource pBufferSource, T pLivingEntity, EquipmentSlot pSlot, int pPackedLight, A pModel, float limbSwing, float limbSwingAmount, float partialTick, float ageInTicks, float netHeadYaw, float headPitch) -
setPartVisibility
-
renderModel
private void renderModel(PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, A pModel, int pDyeColor, ResourceLocation pTextureLocation) -
renderModel
private void renderModel(PoseStack p_289664_, MultiBufferSource p_289689_, int p_289681_, Model p_289658_, int p_350798_, ResourceLocation p_324344_) -
renderTrim
private void renderTrim(Holder<ArmorMaterial> pArmorMaterial, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, ArmorTrim pTrim, A pModel, boolean pInnerTexture) -
renderTrim
private void renderTrim(Holder<ArmorMaterial> p_323506_, PoseStack p_289687_, MultiBufferSource p_289643_, int p_289683_, ArmorTrim p_289692_, Model p_289663_, boolean p_289651_) -
renderGlint
private void renderGlint(PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, A pModel) -
renderGlint
private void renderGlint(PoseStack p_289673_, MultiBufferSource p_289654_, int p_289649_, Model p_289659_) -
getArmorModel
-
usesInnerModel
-
getArmorModelHook
Hook to allow item-sensitive armor model. for HumanoidArmorLayer.
-
renderArmorPiece(PoseStack, MultiBufferSource, LivingEntity, EquipmentSlot, int, HumanoidModel, float, float, float, float, float, float)
instead.