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 ItemInHandRenderer
private static final float
private static final float
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerItemInHandLayer
(RenderLayerParent<T, M> renderer, ItemInHandRenderer itemInHandRenderer) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
renderArmWithItem
(LivingEntity livingEntity, ItemStack itemStack, ItemDisplayContext displayContext, HumanoidArm arm, PoseStack poseStack, MultiBufferSource buffer, int packedLight) private void
renderArmWithSpyglass
(LivingEntity entity, ItemStack stack, HumanoidArm arm, PoseStack poseStack, MultiBufferSource buffer, int combinedLight) Methods inherited from class net.minecraft.client.renderer.entity.layers.ItemInHandLayer
render
Methods 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> renderer, ItemInHandRenderer itemInHandRenderer)
-
-
Method Details
-
renderArmWithItem
protected void renderArmWithItem(LivingEntity livingEntity, ItemStack itemStack, ItemDisplayContext displayContext, HumanoidArm arm, PoseStack poseStack, MultiBufferSource buffer, int packedLight) - Overrides:
renderArmWithItem
in classItemInHandLayer<T extends Player,
M extends EntityModel<T> & ArmedModel & HeadedModel>
-
renderArmWithSpyglass
private void renderArmWithSpyglass(LivingEntity entity, ItemStack stack, HumanoidArm arm, PoseStack poseStack, MultiBufferSource buffer, int combinedLight)
-