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
Modifier and TypeFieldDescriptionprivate final ItemInHandRenderer
private static final float
private static final float
-
Constructor Summary
ConstructorDescriptionPlayerItemInHandLayer
(RenderLayerParent<T, M> p_234866_, ItemInHandRenderer p_234867_) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
renderArmWithItem
(LivingEntity p_174525_, ItemStack p_174526_, ItemTransforms.TransformType p_174527_, HumanoidArm p_174528_, PoseStack p_174529_, MultiBufferSource p_174530_, int p_174531_) private void
renderArmWithSpyglass
(LivingEntity p_174518_, ItemStack p_174519_, HumanoidArm p_174520_, PoseStack p_174521_, MultiBufferSource p_174522_, int p_174523_) 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
-
-
Method Details
-
renderArmWithItem
protected void renderArmWithItem(LivingEntity p_174525_, ItemStack p_174526_, ItemTransforms.TransformType p_174527_, HumanoidArm p_174528_, PoseStack p_174529_, MultiBufferSource p_174530_, int p_174531_) - Overrides:
renderArmWithItem
in classItemInHandLayer<T extends Player,
M extends EntityModel<T> & ArmedModel & HeadedModel>
-
renderArmWithSpyglass
private void renderArmWithSpyglass(LivingEntity p_174518_, ItemStack p_174519_, HumanoidArm p_174520_, PoseStack p_174521_, MultiBufferSource p_174522_, int p_174523_)
-