Class PlayerRenderer
java.lang.Object
net.minecraft.client.renderer.entity.EntityRenderer<AbstractClientPlayer>
net.minecraft.client.renderer.entity.LivingEntityRenderer<AbstractClientPlayer,PlayerModel<AbstractClientPlayer>>
net.minecraft.client.renderer.entity.player.PlayerRenderer
- All Implemented Interfaces:
RenderLayerParent<AbstractClientPlayer,
PlayerModel<AbstractClientPlayer>>
public class PlayerRenderer
extends LivingEntityRenderer<AbstractClientPlayer,PlayerModel<AbstractClientPlayer>>
-
Field Summary
Fields inherited from class net.minecraft.client.renderer.entity.LivingEntityRenderer
layers, model
Fields inherited from class net.minecraft.client.renderer.entity.EntityRenderer
entityRenderDispatcher, NAMETAG_SCALE, shadowRadius, shadowStrength
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static HumanoidModel.ArmPose
getArmPose
(AbstractClientPlayer p_117795_, InteractionHand p_117796_) getRenderOffset
(AbstractClientPlayer p_117785_, float p_117786_) getTextureLocation
(AbstractClientPlayer p_117783_) void
render
(AbstractClientPlayer p_117788_, float p_117789_, float p_117790_, PoseStack p_117791_, MultiBufferSource p_117792_, int p_117793_) private void
renderHand
(PoseStack p_117776_, MultiBufferSource p_117777_, int p_117778_, AbstractClientPlayer p_117779_, ModelPart p_117780_, ModelPart p_117781_) void
renderLeftHand
(PoseStack p_117814_, MultiBufferSource p_117815_, int p_117816_, AbstractClientPlayer p_117817_) protected void
renderNameTag
(AbstractClientPlayer p_117808_, Component p_117809_, PoseStack p_117810_, MultiBufferSource p_117811_, int p_117812_, float p_316461_) void
renderRightHand
(PoseStack p_117771_, MultiBufferSource p_117772_, int p_117773_, AbstractClientPlayer p_117774_) protected void
scale
(AbstractClientPlayer p_117798_, PoseStack p_117799_, float p_117800_) private void
setModelProperties
(AbstractClientPlayer p_117819_) protected void
setupRotations
(AbstractClientPlayer p_117802_, PoseStack p_117803_, float p_117804_, float p_117805_, float p_117806_, float p_320048_) Methods inherited from class net.minecraft.client.renderer.entity.LivingEntityRenderer
addLayer, getAttackAnim, getBob, getFlipDegrees, getModel, getOverlayCoords, getRenderType, getShadowRadius, getWhiteOverlayProgress, isBodyVisible, isEntityUpsideDown, isShaking, shouldShowName
Methods inherited from class net.minecraft.client.renderer.entity.EntityRenderer
getBlockLightLevel, getFont, getPackedLightCoords, getSkyLightLevel, shouldRender
-
Constructor Details
-
PlayerRenderer
-
-
Method Details
-
render
public void render(AbstractClientPlayer p_117788_, float p_117789_, float p_117790_, PoseStack p_117791_, MultiBufferSource p_117792_, int p_117793_) - Overrides:
render
in classLivingEntityRenderer<AbstractClientPlayer,
PlayerModel<AbstractClientPlayer>>
-
getRenderOffset
- Overrides:
getRenderOffset
in classEntityRenderer<AbstractClientPlayer>
-
setModelProperties
-
getArmPose
private static HumanoidModel.ArmPose getArmPose(AbstractClientPlayer p_117795_, InteractionHand p_117796_) -
getTextureLocation
- Specified by:
getTextureLocation
in interfaceRenderLayerParent<AbstractClientPlayer,
PlayerModel<AbstractClientPlayer>> - Specified by:
getTextureLocation
in classEntityRenderer<AbstractClientPlayer>
-
scale
- Overrides:
scale
in classLivingEntityRenderer<AbstractClientPlayer,
PlayerModel<AbstractClientPlayer>>
-
renderNameTag
protected void renderNameTag(AbstractClientPlayer p_117808_, Component p_117809_, PoseStack p_117810_, MultiBufferSource p_117811_, int p_117812_, float p_316461_) - Overrides:
renderNameTag
in classEntityRenderer<AbstractClientPlayer>
-
renderRightHand
public void renderRightHand(PoseStack p_117771_, MultiBufferSource p_117772_, int p_117773_, AbstractClientPlayer p_117774_) -
renderLeftHand
public void renderLeftHand(PoseStack p_117814_, MultiBufferSource p_117815_, int p_117816_, AbstractClientPlayer p_117817_) -
renderHand
private void renderHand(PoseStack p_117776_, MultiBufferSource p_117777_, int p_117778_, AbstractClientPlayer p_117779_, ModelPart p_117780_, ModelPart p_117781_) -
setupRotations
protected void setupRotations(AbstractClientPlayer p_117802_, PoseStack p_117803_, float p_117804_, float p_117805_, float p_117806_, float p_320048_) - Overrides:
setupRotations
in classLivingEntityRenderer<AbstractClientPlayer,
PlayerModel<AbstractClientPlayer>>
-