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_270884_, ItemStack p_270379_, ItemDisplayContext p_270607_, HumanoidArm p_270324_, PoseStack p_270124_, MultiBufferSource p_270414_, int p_270295_) 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_270884_, ItemStack p_270379_, ItemDisplayContext p_270607_, HumanoidArm p_270324_, PoseStack p_270124_, MultiBufferSource p_270414_, int p_270295_) - 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_)
-