Package net.minecraft.client.renderer
Class ItemInHandRenderer
java.lang.Object
net.minecraft.client.renderer.ItemInHandRenderer
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static float
private static float
private static float
private static float
private static float
private static float
private static float
private static float
private static float
private static float
private static int
private static int
private static int
private static float
private static float
private static float
private static float
private static float
private static float
private static float
private static float
private static float
private static float
private static float
private static float
private static float
private static float
private static float
private static double
private static float
private static float
private static float
private static float
private static float
private static float
private EntityRenderDispatcher
private static float
private static float
private static float
private static float
private static float
private static float
private static float
private static float
private static float
private static float
private static float
private ItemRenderer
private float
private ItemStack
private static RenderType
private static RenderType
private static int
private static float
private static float
private static float
private static float
private static float
private static float
private static float
private static float
private static float
private static float
private static float
private static float
private static float
private static int
private static float
private static float
private static float
private static float
private static float
private static int
private static float
private static float
private static float
private Minecraft
private float
private ItemStack
private float
private float
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
applyEatTransform(PoseStack p_109331_, float p_109332_, HumanoidArm p_109333_, ItemStack p_109334_)
private void
applyItemArmAttackTransform(PoseStack p_109336_, HumanoidArm p_109337_, float p_109338_)
private void
applyItemArmTransform(PoseStack p_109383_, HumanoidArm p_109384_, float p_109385_)
private float
calculateMapTilt(float p_109313_)
(package private) static ItemInHandRenderer.HandRenderSelection
evaluateWhichHandsToRender(LocalPlayer p_172915_)
private static boolean
isChargedCrossbow(ItemStack p_172913_)
void
itemUsed(InteractionHand p_109321_)
private void
renderArmWithItem(AbstractClientPlayer p_109372_, float p_109373_, float p_109374_, InteractionHand p_109375_, float p_109376_, ItemStack p_109377_, float p_109378_, PoseStack p_109379_, MultiBufferSource p_109380_, int p_109381_)
void
renderHandsWithItems(float p_109315_, PoseStack p_109316_, MultiBufferSource.BufferSource p_109317_, LocalPlayer p_109318_, int p_109319_)
void
renderItem(LivingEntity p_109323_, ItemStack p_109324_, ItemTransforms.TransformType p_109325_, boolean p_109326_, PoseStack p_109327_, MultiBufferSource p_109328_, int p_109329_)
private void
renderMap(PoseStack p_109367_, MultiBufferSource p_109368_, int p_109369_, ItemStack p_109370_)
private void
renderMapHand(PoseStack p_109362_, MultiBufferSource p_109363_, int p_109364_, HumanoidArm p_109365_)
private void
renderOneHandedMap(PoseStack p_109354_, MultiBufferSource p_109355_, int p_109356_, float p_109357_, HumanoidArm p_109358_, float p_109359_, ItemStack p_109360_)
private void
renderPlayerArm(PoseStack p_109347_, MultiBufferSource p_109348_, int p_109349_, float p_109350_, float p_109351_, HumanoidArm p_109352_)
private void
renderTwoHandedMap(PoseStack p_109340_, MultiBufferSource p_109341_, int p_109342_, float p_109343_, float p_109344_, float p_109345_)
private static ItemInHandRenderer.HandRenderSelection
selectionUsingItemWhileHoldingBowLike(LocalPlayer p_172917_)
void
tick()
-
Field Details
-
MAP_BACKGROUND
-
MAP_BACKGROUND_CHECKERBOARD
-
ITEM_SWING_X_POS_SCALE
private static final float ITEM_SWING_X_POS_SCALE- See Also:
- Constant Field Values
-
ITEM_SWING_Y_POS_SCALE
private static final float ITEM_SWING_Y_POS_SCALE- See Also:
- Constant Field Values
-
ITEM_SWING_Z_POS_SCALE
private static final float ITEM_SWING_Z_POS_SCALE- See Also:
- Constant Field Values
-
ITEM_HEIGHT_SCALE
private static final float ITEM_HEIGHT_SCALE- See Also:
- Constant Field Values
-
ITEM_POS_X
private static final float ITEM_POS_X- See Also:
- Constant Field Values
-
ITEM_POS_Y
private static final float ITEM_POS_Y- See Also:
- Constant Field Values
-
ITEM_POS_Z
private static final float ITEM_POS_Z- See Also:
- Constant Field Values
-
ITEM_PRESWING_ROT_Y
private static final float ITEM_PRESWING_ROT_Y- See Also:
- Constant Field Values
-
ITEM_SWING_X_ROT_AMOUNT
private static final float ITEM_SWING_X_ROT_AMOUNT- See Also:
- Constant Field Values
-
ITEM_SWING_Y_ROT_AMOUNT
private static final float ITEM_SWING_Y_ROT_AMOUNT- See Also:
- Constant Field Values
-
ITEM_SWING_Z_ROT_AMOUNT
private static final float ITEM_SWING_Z_ROT_AMOUNT- See Also:
- Constant Field Values
-
EAT_JIGGLE_X_ROT_AMOUNT
private static final float EAT_JIGGLE_X_ROT_AMOUNT- See Also:
- Constant Field Values
-
EAT_JIGGLE_Y_ROT_AMOUNT
private static final float EAT_JIGGLE_Y_ROT_AMOUNT- See Also:
- Constant Field Values
-
EAT_JIGGLE_Z_ROT_AMOUNT
private static final float EAT_JIGGLE_Z_ROT_AMOUNT- See Also:
- Constant Field Values
-
EAT_JIGGLE_X_POS_SCALE
private static final float EAT_JIGGLE_X_POS_SCALE- See Also:
- Constant Field Values
-
EAT_JIGGLE_Y_POS_SCALE
private static final float EAT_JIGGLE_Y_POS_SCALE- See Also:
- Constant Field Values
-
EAT_JIGGLE_Z_POS_SCALE
private static final float EAT_JIGGLE_Z_POS_SCALE- See Also:
- Constant Field Values
-
EAT_JIGGLE_EXPONENT
private static final double EAT_JIGGLE_EXPONENT- See Also:
- Constant Field Values
-
EAT_EXTRA_JIGGLE_CUTOFF
private static final float EAT_EXTRA_JIGGLE_CUTOFF- See Also:
- Constant Field Values
-
EAT_EXTRA_JIGGLE_SCALE
private static final float EAT_EXTRA_JIGGLE_SCALE- See Also:
- Constant Field Values
-
ARM_SWING_X_POS_SCALE
private static final float ARM_SWING_X_POS_SCALE- See Also:
- Constant Field Values
-
ARM_SWING_Y_POS_SCALE
private static final float ARM_SWING_Y_POS_SCALE- See Also:
- Constant Field Values
-
ARM_SWING_Z_POS_SCALE
private static final float ARM_SWING_Z_POS_SCALE- See Also:
- Constant Field Values
-
ARM_SWING_Y_ROT_AMOUNT
private static final float ARM_SWING_Y_ROT_AMOUNT- See Also:
- Constant Field Values
-
ARM_SWING_Z_ROT_AMOUNT
private static final float ARM_SWING_Z_ROT_AMOUNT- See Also:
- Constant Field Values
-
ARM_HEIGHT_SCALE
private static final float ARM_HEIGHT_SCALE- See Also:
- Constant Field Values
-
ARM_POS_SCALE
private static final float ARM_POS_SCALE- See Also:
- Constant Field Values
-
ARM_POS_X
private static final float ARM_POS_X- See Also:
- Constant Field Values
-
ARM_POS_Y
private static final float ARM_POS_Y- See Also:
- Constant Field Values
-
ARM_POS_Z
private static final float ARM_POS_Z- See Also:
- Constant Field Values
-
ARM_PRESWING_ROT_Y
private static final float ARM_PRESWING_ROT_Y- See Also:
- Constant Field Values
-
ARM_PREROTATION_X_OFFSET
private static final float ARM_PREROTATION_X_OFFSET- See Also:
- Constant Field Values
-
ARM_PREROTATION_Y_OFFSET
private static final float ARM_PREROTATION_Y_OFFSET- See Also:
- Constant Field Values
-
ARM_PREROTATION_Z_OFFSET
private static final float ARM_PREROTATION_Z_OFFSET- See Also:
- Constant Field Values
-
ARM_POSTROTATION_X_OFFSET
private static final float ARM_POSTROTATION_X_OFFSET- See Also:
- Constant Field Values
-
ARM_ROT_X
private static final int ARM_ROT_X- See Also:
- Constant Field Values
-
ARM_ROT_Y
private static final int ARM_ROT_Y- See Also:
- Constant Field Values
-
ARM_ROT_Z
private static final int ARM_ROT_Z- See Also:
- Constant Field Values
-
MAP_SWING_X_POS_SCALE
private static final float MAP_SWING_X_POS_SCALE- See Also:
- Constant Field Values
-
MAP_SWING_Z_POS_SCALE
private static final float MAP_SWING_Z_POS_SCALE- See Also:
- Constant Field Values
-
MAP_HANDS_POS_X
private static final float MAP_HANDS_POS_X- See Also:
- Constant Field Values
-
MAP_HANDS_POS_Y
private static final float MAP_HANDS_POS_Y- See Also:
- Constant Field Values
-
MAP_HANDS_POS_Z
private static final float MAP_HANDS_POS_Z- See Also:
- Constant Field Values
-
MAP_HANDS_HEIGHT_SCALE
private static final float MAP_HANDS_HEIGHT_SCALE- See Also:
- Constant Field Values
-
MAP_HANDS_TILT_SCALE
private static final float MAP_HANDS_TILT_SCALE- See Also:
- Constant Field Values
-
MAP_PLAYER_PITCH_SCALE
private static final float MAP_PLAYER_PITCH_SCALE- See Also:
- Constant Field Values
-
MAP_HANDS_Z_ROT_AMOUNT
private static final float MAP_HANDS_Z_ROT_AMOUNT- See Also:
- Constant Field Values
-
MAPHAND_X_ROT_AMOUNT
private static final float MAPHAND_X_ROT_AMOUNT- See Also:
- Constant Field Values
-
MAPHAND_Y_ROT_AMOUNT
private static final float MAPHAND_Y_ROT_AMOUNT- See Also:
- Constant Field Values
-
MAPHAND_Z_ROT_AMOUNT
private static final float MAPHAND_Z_ROT_AMOUNT- See Also:
- Constant Field Values
-
MAP_HAND_X_POS
private static final float MAP_HAND_X_POS- See Also:
- Constant Field Values
-
MAP_HAND_Y_POS
private static final float MAP_HAND_Y_POS- See Also:
- Constant Field Values
-
MAP_HAND_Z_POS
private static final float MAP_HAND_Z_POS- See Also:
- Constant Field Values
-
MAP_SWING_X_ROT_AMOUNT
private static final float MAP_SWING_X_ROT_AMOUNT- See Also:
- Constant Field Values
-
MAP_PRE_ROT_SCALE
private static final float MAP_PRE_ROT_SCALE- See Also:
- Constant Field Values
-
MAP_GLOBAL_X_POS
private static final float MAP_GLOBAL_X_POS- See Also:
- Constant Field Values
-
MAP_GLOBAL_Y_POS
private static final float MAP_GLOBAL_Y_POS- See Also:
- Constant Field Values
-
MAP_GLOBAL_Z_POS
private static final float MAP_GLOBAL_Z_POS- See Also:
- Constant Field Values
-
MAP_FINAL_SCALE
private static final float MAP_FINAL_SCALE- See Also:
- Constant Field Values
-
MAP_BORDER
private static final int MAP_BORDER- See Also:
- Constant Field Values
-
MAP_HEIGHT
private static final int MAP_HEIGHT- See Also:
- Constant Field Values
-
MAP_WIDTH
private static final int MAP_WIDTH- See Also:
- Constant Field Values
-
BOW_CHARGE_X_POS_SCALE
private static final float BOW_CHARGE_X_POS_SCALE- See Also:
- Constant Field Values
-
BOW_CHARGE_Y_POS_SCALE
private static final float BOW_CHARGE_Y_POS_SCALE- See Also:
- Constant Field Values
-
BOW_CHARGE_Z_POS_SCALE
private static final float BOW_CHARGE_Z_POS_SCALE- See Also:
- Constant Field Values
-
BOW_CHARGE_SHAKE_X_SCALE
private static final float BOW_CHARGE_SHAKE_X_SCALE- See Also:
- Constant Field Values
-
BOW_CHARGE_SHAKE_Y_SCALE
private static final float BOW_CHARGE_SHAKE_Y_SCALE- See Also:
- Constant Field Values
-
BOW_CHARGE_SHAKE_Z_SCALE
private static final float BOW_CHARGE_SHAKE_Z_SCALE- See Also:
- Constant Field Values
-
BOW_CHARGE_Z_SCALE
private static final float BOW_CHARGE_Z_SCALE- See Also:
- Constant Field Values
-
BOW_MIN_SHAKE_CHARGE
private static final float BOW_MIN_SHAKE_CHARGE- See Also:
- Constant Field Values
-
minecraft
-
mainHandItem
-
offHandItem
-
mainHandHeight
private float mainHandHeight -
oMainHandHeight
private float oMainHandHeight -
offHandHeight
private float offHandHeight -
oOffHandHeight
private float oOffHandHeight -
entityRenderDispatcher
-
itemRenderer
-
-
Constructor Details
-
ItemInHandRenderer
-
-
Method Details
-
renderItem
public void renderItem(LivingEntity p_109323_, ItemStack p_109324_, ItemTransforms.TransformType p_109325_, boolean p_109326_, PoseStack p_109327_, MultiBufferSource p_109328_, int p_109329_) -
calculateMapTilt
private float calculateMapTilt(float p_109313_) -
renderMapHand
private void renderMapHand(PoseStack p_109362_, MultiBufferSource p_109363_, int p_109364_, HumanoidArm p_109365_) -
renderOneHandedMap
private void renderOneHandedMap(PoseStack p_109354_, MultiBufferSource p_109355_, int p_109356_, float p_109357_, HumanoidArm p_109358_, float p_109359_, ItemStack p_109360_) -
renderTwoHandedMap
private void renderTwoHandedMap(PoseStack p_109340_, MultiBufferSource p_109341_, int p_109342_, float p_109343_, float p_109344_, float p_109345_) -
renderMap
private void renderMap(PoseStack p_109367_, MultiBufferSource p_109368_, int p_109369_, ItemStack p_109370_) -
renderPlayerArm
private void renderPlayerArm(PoseStack p_109347_, MultiBufferSource p_109348_, int p_109349_, float p_109350_, float p_109351_, HumanoidArm p_109352_) -
applyEatTransform
private void applyEatTransform(PoseStack p_109331_, float p_109332_, HumanoidArm p_109333_, ItemStack p_109334_) -
applyItemArmAttackTransform
private void applyItemArmAttackTransform(PoseStack p_109336_, HumanoidArm p_109337_, float p_109338_) -
applyItemArmTransform
-
renderHandsWithItems
public void renderHandsWithItems(float p_109315_, PoseStack p_109316_, MultiBufferSource.BufferSource p_109317_, LocalPlayer p_109318_, int p_109319_) -
evaluateWhichHandsToRender
-
selectionUsingItemWhileHoldingBowLike
private static ItemInHandRenderer.HandRenderSelection selectionUsingItemWhileHoldingBowLike(LocalPlayer p_172917_) -
isChargedCrossbow
-
renderArmWithItem
private void renderArmWithItem(AbstractClientPlayer p_109372_, float p_109373_, float p_109374_, InteractionHand p_109375_, float p_109376_, ItemStack p_109377_, float p_109378_, PoseStack p_109379_, MultiBufferSource p_109380_, int p_109381_) -
tick
public void tick() -
itemUsed
-