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> renderer, A innerModel, A outerModel, ModelManager modelManager) -
Method Summary
Modifier and TypeMethodDescriptionprivate A
getArmorModel
(EquipmentSlot slot) protected Model
getArmorModelHook
(T entity, ItemStack itemStack, EquipmentSlot slot, A model) Hook to allow item-sensitive armor model.void
render
(PoseStack poseStack, MultiBufferSource buffer, int packedLight, T livingEntity, float limbSwing, float limbSwingAmount, float partialTicks, float ageInTicks, float netHeadYaw, float headPitch) private void
renderArmorPiece
(PoseStack poseStack, MultiBufferSource bufferSource, T livingEntity, EquipmentSlot slot, int packedLight, A model) Deprecated.private void
renderArmorPiece
(PoseStack poseStack, MultiBufferSource bufferSource, T livingEntity, EquipmentSlot slot, int packedLight, A p_model, float limbSwing, float limbSwingAmount, float partialTick, float ageInTicks, float netHeadYaw, float headPitch) private void
renderGlint
(PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, A model) private void
renderGlint
(PoseStack p_289673_, MultiBufferSource p_289654_, int p_289649_, Model p_289659_) private void
renderModel
(PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, A model, int dyeColor, ResourceLocation textureLocation) 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> armorMaterial, PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, ArmorTrim trim, A model, boolean innerTexture) 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 model, EquipmentSlot slot) private boolean
usesInnerModel
(EquipmentSlot slot) 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> renderer, A innerModel, A outerModel, ModelManager modelManager)
-
-
Method Details
-
render
public void render(PoseStack poseStack, MultiBufferSource buffer, int packedLight, T livingEntity, float limbSwing, float limbSwingAmount, float partialTicks, float ageInTicks, float netHeadYaw, float headPitch) - Specified by:
render
in classRenderLayer<T extends LivingEntity,
M extends HumanoidModel<T>>
-
renderArmorPiece
@Deprecated private void renderArmorPiece(PoseStack poseStack, MultiBufferSource bufferSource, T livingEntity, EquipmentSlot slot, int packedLight, A model) -
renderArmorPiece
private void renderArmorPiece(PoseStack poseStack, MultiBufferSource bufferSource, T livingEntity, EquipmentSlot slot, int packedLight, A p_model, float limbSwing, float limbSwingAmount, float partialTick, float ageInTicks, float netHeadYaw, float headPitch) -
setPartVisibility
-
renderModel
private void renderModel(PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, A model, int dyeColor, ResourceLocation textureLocation) -
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> armorMaterial, PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, ArmorTrim trim, A model, boolean innerTexture) -
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 poseStack, MultiBufferSource bufferSource, int packedLight, A model) -
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.