Class HumanoidArmorLayer<S extends HumanoidRenderState,M extends HumanoidModel<S>,A extends HumanoidModel<S>>
java.lang.Object
net.minecraft.client.renderer.entity.layers.RenderLayer<S,M>
net.minecraft.client.renderer.entity.layers.HumanoidArmorLayer<S,M,A>
public class HumanoidArmorLayer<S extends HumanoidRenderState,M extends HumanoidModel<S>,A extends HumanoidModel<S>>
extends RenderLayer<S,M>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final EquipmentLayerRendererprivate final Aprivate final Aprivate final Aprivate final A -
Constructor Summary
ConstructorsConstructorDescriptionHumanoidArmorLayer(RenderLayerParent<S, M> pRenderer, A pInnerModel, A pOuterModel, A pInnerModelBaby, A pOuterModelBaby, EquipmentLayerRenderer pEquipmentRenderer) HumanoidArmorLayer(RenderLayerParent<S, M> pRenderer, A pInnerModel, A pOuterModel, EquipmentLayerRenderer pEquipmentRenderer) -
Method Summary
Modifier and TypeMethodDescriptionprivate AgetArmorModel(S pRenderState, EquipmentSlot pSlot) voidrender(PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, S pRenderState, float pYRot, float pXRot) private voidrenderArmorPiece(PoseStack pPoseStack, MultiBufferSource pBufferSource, ItemStack pArmorItem, EquipmentSlot pSlot, int pPackedLight, A pModel) protected voidsetPartVisibility(A pModel, EquipmentSlot pSlot) private static booleanshouldRender(Equippable pEquippable, EquipmentSlot pSlot) static booleanshouldRender(ItemStack pStack, EquipmentSlot pSlot) private booleanusesInnerModel(EquipmentSlot pSlot) Methods inherited from class net.minecraft.client.renderer.entity.layers.RenderLayer
coloredCutoutModelCopyLayerRender, getParentModel, renderColoredCutoutModel
-
Field Details
-
innerModel
-
outerModel
-
innerModelBaby
-
outerModelBaby
-
equipmentRenderer
-
-
Constructor Details
-
HumanoidArmorLayer
public HumanoidArmorLayer(RenderLayerParent<S, M> pRenderer, A pInnerModel, A pOuterModel, EquipmentLayerRenderer pEquipmentRenderer) -
HumanoidArmorLayer
public HumanoidArmorLayer(RenderLayerParent<S, M> pRenderer, A pInnerModel, A pOuterModel, A pInnerModelBaby, A pOuterModelBaby, EquipmentLayerRenderer pEquipmentRenderer)
-
-
Method Details
-
shouldRender
-
shouldRender
-
render
public void render(PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, S pRenderState, float pYRot, float pXRot) - Specified by:
renderin classRenderLayer<S extends HumanoidRenderState,M extends HumanoidModel<S>>
-
renderArmorPiece
private void renderArmorPiece(PoseStack pPoseStack, MultiBufferSource pBufferSource, ItemStack pArmorItem, EquipmentSlot pSlot, int pPackedLight, A pModel) -
setPartVisibility
-
getArmorModel
-
usesInnerModel
-