Package net.minecraft.client.renderer
Class FirstPersonRenderer
java.lang.Object
net.minecraft.client.renderer.FirstPersonRenderer
-
Field Summary
Modifier and TypeFieldDescriptionprivate final EntityRendererManager
private final ItemRenderer
private float
private ItemStack
private static final RenderType
private static final RenderType
private final Minecraft
private float
private ItemStack
private float
private float
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
applyEatTransform
(MatrixStack p_228398_1_, float p_228398_2_, HandSide p_228398_3_, ItemStack p_228398_4_) private void
applyItemArmAttackTransform
(MatrixStack p_228399_1_, HandSide p_228399_2_, float p_228399_3_) private void
applyItemArmTransform
(MatrixStack p_228406_1_, HandSide p_228406_2_, float p_228406_3_) private float
calculateMapTilt
(float p_178100_1_) void
private void
renderArmWithItem
(AbstractClientPlayerEntity p_228405_1_, float p_228405_2_, float p_228405_3_, Hand p_228405_4_, float p_228405_5_, ItemStack p_228405_6_, float p_228405_7_, MatrixStack p_228405_8_, IRenderTypeBuffer p_228405_9_, int p_228405_10_) void
renderHandsWithItems
(float p_228396_1_, MatrixStack p_228396_2_, IRenderTypeBuffer.Impl p_228396_3_, ClientPlayerEntity p_228396_4_, int p_228396_5_) void
renderItem
(LivingEntity p_228397_1_, ItemStack p_228397_2_, ItemCameraTransforms.TransformType p_228397_3_, boolean p_228397_4_, MatrixStack p_228397_5_, IRenderTypeBuffer p_228397_6_, int p_228397_7_) private void
renderMap
(MatrixStack p_228404_1_, IRenderTypeBuffer p_228404_2_, int p_228404_3_, ItemStack p_228404_4_) private void
renderMapHand
(MatrixStack p_228403_1_, IRenderTypeBuffer p_228403_2_, int p_228403_3_, HandSide p_228403_4_) private void
renderOneHandedMap
(MatrixStack p_228402_1_, IRenderTypeBuffer p_228402_2_, int p_228402_3_, float p_228402_4_, HandSide p_228402_5_, float p_228402_6_, ItemStack p_228402_7_) private void
renderPlayerArm
(MatrixStack p_228401_1_, IRenderTypeBuffer p_228401_2_, int p_228401_3_, float p_228401_4_, float p_228401_5_, HandSide p_228401_6_) private void
renderTwoHandedMap
(MatrixStack p_228400_1_, IRenderTypeBuffer p_228400_2_, int p_228400_3_, float p_228400_4_, float p_228400_5_, float p_228400_6_) void
tick()
-
Field Details
-
MAP_BACKGROUND
-
MAP_BACKGROUND_CHECKERBOARD
-
minecraft
-
mainHandItem
-
offHandItem
-
mainHandHeight
private float mainHandHeight -
oMainHandHeight
private float oMainHandHeight -
offHandHeight
private float offHandHeight -
oOffHandHeight
private float oOffHandHeight -
entityRenderDispatcher
-
itemRenderer
-
-
Constructor Details
-
FirstPersonRenderer
-
-
Method Details
-
renderItem
public void renderItem(LivingEntity p_228397_1_, ItemStack p_228397_2_, ItemCameraTransforms.TransformType p_228397_3_, boolean p_228397_4_, MatrixStack p_228397_5_, IRenderTypeBuffer p_228397_6_, int p_228397_7_) -
calculateMapTilt
private float calculateMapTilt(float p_178100_1_) -
renderMapHand
private void renderMapHand(MatrixStack p_228403_1_, IRenderTypeBuffer p_228403_2_, int p_228403_3_, HandSide p_228403_4_) -
renderOneHandedMap
private void renderOneHandedMap(MatrixStack p_228402_1_, IRenderTypeBuffer p_228402_2_, int p_228402_3_, float p_228402_4_, HandSide p_228402_5_, float p_228402_6_, ItemStack p_228402_7_) -
renderTwoHandedMap
private void renderTwoHandedMap(MatrixStack p_228400_1_, IRenderTypeBuffer p_228400_2_, int p_228400_3_, float p_228400_4_, float p_228400_5_, float p_228400_6_) -
renderMap
private void renderMap(MatrixStack p_228404_1_, IRenderTypeBuffer p_228404_2_, int p_228404_3_, ItemStack p_228404_4_) -
renderPlayerArm
private void renderPlayerArm(MatrixStack p_228401_1_, IRenderTypeBuffer p_228401_2_, int p_228401_3_, float p_228401_4_, float p_228401_5_, HandSide p_228401_6_) -
applyEatTransform
private void applyEatTransform(MatrixStack p_228398_1_, float p_228398_2_, HandSide p_228398_3_, ItemStack p_228398_4_) -
applyItemArmAttackTransform
private void applyItemArmAttackTransform(MatrixStack p_228399_1_, HandSide p_228399_2_, float p_228399_3_) -
applyItemArmTransform
private void applyItemArmTransform(MatrixStack p_228406_1_, HandSide p_228406_2_, float p_228406_3_) -
renderHandsWithItems
public void renderHandsWithItems(float p_228396_1_, MatrixStack p_228396_2_, IRenderTypeBuffer.Impl p_228396_3_, ClientPlayerEntity p_228396_4_, int p_228396_5_) -
renderArmWithItem
private void renderArmWithItem(AbstractClientPlayerEntity p_228405_1_, float p_228405_2_, float p_228405_3_, Hand p_228405_4_, float p_228405_5_, ItemStack p_228405_6_, float p_228405_7_, MatrixStack p_228405_8_, IRenderTypeBuffer p_228405_9_, int p_228405_10_) -
tick
public void tick() -
itemUsed
-