Class PlayerItemInHandLayer<T extends Player,M extends EntityModel<T> & ArmedModel & HeadedModel>
java.lang.Object
net.minecraft.client.renderer.entity.layers.RenderLayer<T,M>
net.minecraft.client.renderer.entity.layers.ItemInHandLayer<T,M>
net.minecraft.client.renderer.entity.layers.PlayerItemInHandLayer<T,M>
public class PlayerItemInHandLayer<T extends Player,M extends EntityModel<T> & ArmedModel & HeadedModel>
extends ItemInHandLayer<T,M>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ItemInHandRendererprivate static final floatprivate static final float -
Constructor Summary
ConstructorsConstructorDescriptionPlayerItemInHandLayer(RenderLayerParent<T, M> pRenderer, ItemInHandRenderer pItemInHandRenderer) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidrenderArmWithItem(LivingEntity pLivingEntity, ItemStack pItemStack, ItemDisplayContext pDisplayContext, HumanoidArm pArm, PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight) private voidrenderArmWithSpyglass(LivingEntity pEntity, ItemStack pStack, HumanoidArm pArm, PoseStack pPoseStack, MultiBufferSource pBuffer, int pCombinedLight) Methods inherited from class net.minecraft.client.renderer.entity.layers.ItemInHandLayer
renderMethods inherited from class net.minecraft.client.renderer.entity.layers.RenderLayer
coloredCutoutModelCopyLayerRender, getParentModel, getTextureLocation, renderColoredCutoutModel
-
Field Details
-
itemInHandRenderer
-
X_ROT_MIN
private static final float X_ROT_MIN- See Also:
-
X_ROT_MAX
private static final float X_ROT_MAX- See Also:
-
-
Constructor Details
-
PlayerItemInHandLayer
public PlayerItemInHandLayer(RenderLayerParent<T, M> pRenderer, ItemInHandRenderer pItemInHandRenderer)
-
-
Method Details
-
renderArmWithItem
protected void renderArmWithItem(LivingEntity pLivingEntity, ItemStack pItemStack, ItemDisplayContext pDisplayContext, HumanoidArm pArm, PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight) - Overrides:
renderArmWithItemin classItemInHandLayer<T extends Player,M extends EntityModel<T> & ArmedModel & HeadedModel>
-
renderArmWithSpyglass
private void renderArmWithSpyglass(LivingEntity pEntity, ItemStack pStack, HumanoidArm pArm, PoseStack pPoseStack, MultiBufferSource pBuffer, int pCombinedLight)
-