Class PlayerRenderer
java.lang.Object
net.minecraft.client.renderer.entity.EntityRenderer<T>
net.minecraft.client.renderer.entity.LivingRenderer<AbstractClientPlayerEntity,PlayerModel<AbstractClientPlayerEntity>>
net.minecraft.client.renderer.entity.PlayerRenderer
- All Implemented Interfaces:
IEntityRenderer<AbstractClientPlayerEntity,
PlayerModel<AbstractClientPlayerEntity>>
public class PlayerRenderer
extends LivingRenderer<AbstractClientPlayerEntity,PlayerModel<AbstractClientPlayerEntity>>
-
Field Summary
Fields inherited from class net.minecraft.client.renderer.entity.LivingRenderer
layers, model
Fields inherited from class net.minecraft.client.renderer.entity.EntityRenderer
entityRenderDispatcher, shadowRadius, shadowStrength
-
Constructor Summary
ConstructorDescriptionPlayerRenderer
(EntityRendererManager p_i46102_1_) PlayerRenderer
(EntityRendererManager p_i46103_1_, boolean p_i46103_2_) -
Method Summary
Modifier and TypeMethodDescriptionprivate static BipedModel.ArmPose
getArmPose
(AbstractClientPlayerEntity p_241741_0_, Hand p_241741_1_) getRenderOffset
(AbstractClientPlayerEntity p_225627_1_, float p_225627_2_) getTextureLocation
(AbstractClientPlayerEntity p_110775_1_) void
render
(AbstractClientPlayerEntity p_225623_1_, float p_225623_2_, float p_225623_3_, MatrixStack p_225623_4_, IRenderTypeBuffer p_225623_5_, int p_225623_6_) private void
renderHand
(MatrixStack p_229145_1_, IRenderTypeBuffer p_229145_2_, int p_229145_3_, AbstractClientPlayerEntity p_229145_4_, ModelRenderer p_229145_5_, ModelRenderer p_229145_6_) void
renderLeftHand
(MatrixStack p_229146_1_, IRenderTypeBuffer p_229146_2_, int p_229146_3_, AbstractClientPlayerEntity p_229146_4_) protected void
renderNameTag
(AbstractClientPlayerEntity p_225629_1_, ITextComponent p_225629_2_, MatrixStack p_225629_3_, IRenderTypeBuffer p_225629_4_, int p_225629_5_) void
renderRightHand
(MatrixStack p_229144_1_, IRenderTypeBuffer p_229144_2_, int p_229144_3_, AbstractClientPlayerEntity p_229144_4_) protected void
scale
(AbstractClientPlayerEntity p_225620_1_, MatrixStack p_225620_2_, float p_225620_3_) private void
setModelProperties
(AbstractClientPlayerEntity p_177137_1_) protected void
setupRotations
(AbstractClientPlayerEntity p_225621_1_, MatrixStack p_225621_2_, float p_225621_3_, float p_225621_4_, float p_225621_5_) Methods inherited from class net.minecraft.client.renderer.entity.LivingRenderer
addLayer, getAttackAnim, getBob, getFlipDegrees, getModel, getOverlayCoords, getRenderType, getWhiteOverlayProgress, isBodyVisible, isShaking, shouldShowName
Methods inherited from class net.minecraft.client.renderer.entity.EntityRenderer
getBlockLightLevel, getDispatcher, getFont, getPackedLightCoords, getSkyLightLevel, shouldRender
-
Constructor Details
-
PlayerRenderer
-
PlayerRenderer
-
-
Method Details
-
render
public void render(AbstractClientPlayerEntity p_225623_1_, float p_225623_2_, float p_225623_3_, MatrixStack p_225623_4_, IRenderTypeBuffer p_225623_5_, int p_225623_6_) - Overrides:
render
in classLivingRenderer<AbstractClientPlayerEntity,
PlayerModel<AbstractClientPlayerEntity>>
-
getRenderOffset
- Overrides:
getRenderOffset
in classEntityRenderer<AbstractClientPlayerEntity>
-
setModelProperties
-
getArmPose
private static BipedModel.ArmPose getArmPose(AbstractClientPlayerEntity p_241741_0_, Hand p_241741_1_) -
getTextureLocation
- Specified by:
getTextureLocation
in interfaceIEntityRenderer<AbstractClientPlayerEntity,
PlayerModel<AbstractClientPlayerEntity>> - Specified by:
getTextureLocation
in classEntityRenderer<AbstractClientPlayerEntity>
-
scale
protected void scale(AbstractClientPlayerEntity p_225620_1_, MatrixStack p_225620_2_, float p_225620_3_) - Overrides:
scale
in classLivingRenderer<AbstractClientPlayerEntity,
PlayerModel<AbstractClientPlayerEntity>>
-
renderNameTag
protected void renderNameTag(AbstractClientPlayerEntity p_225629_1_, ITextComponent p_225629_2_, MatrixStack p_225629_3_, IRenderTypeBuffer p_225629_4_, int p_225629_5_) - Overrides:
renderNameTag
in classEntityRenderer<AbstractClientPlayerEntity>
-
renderRightHand
public void renderRightHand(MatrixStack p_229144_1_, IRenderTypeBuffer p_229144_2_, int p_229144_3_, AbstractClientPlayerEntity p_229144_4_) -
renderLeftHand
public void renderLeftHand(MatrixStack p_229146_1_, IRenderTypeBuffer p_229146_2_, int p_229146_3_, AbstractClientPlayerEntity p_229146_4_) -
renderHand
private void renderHand(MatrixStack p_229145_1_, IRenderTypeBuffer p_229145_2_, int p_229145_3_, AbstractClientPlayerEntity p_229145_4_, ModelRenderer p_229145_5_, ModelRenderer p_229145_6_) -
setupRotations
protected void setupRotations(AbstractClientPlayerEntity p_225621_1_, MatrixStack p_225621_2_, float p_225621_3_, float p_225621_4_, float p_225621_5_) - Overrides:
setupRotations
in classLivingRenderer<AbstractClientPlayerEntity,
PlayerModel<AbstractClientPlayerEntity>>
-