Package net.minecraft.client.renderer
Class ItemInHandRenderer
java.lang.Object
net.minecraft.client.renderer.ItemInHandRenderer
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static enum
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final float
private static final float
private static final float
private static final float
private static final float
private static final float
private static final float
private static final float
private static final float
private static final float
private static final int
private static final int
private static final int
private static final float
private static final float
private static final float
private static final float
private static final float
private static final float
private static final float
private static final float
private static final float
private static final float
private static final float
private static final float
private static final float
private static final float
private static final float
private static final double
private static final float
private static final float
private static final float
private static final float
private static final float
private static final float
private final EntityRenderDispatcher
private static final float
private static final float
private static final float
private static final float
private static final float
private static final float
private static final float
private static final float
private static final float
private static final float
private static final float
private final ItemRenderer
private float
private ItemStack
private static final RenderType
private static final RenderType
private static final int
private static final float
private static final float
private static final float
private static final float
private static final float
private static final float
private static final float
private static final float
private static final float
private static final float
private static final float
private static final float
private static final float
private static final int
private static final float
private static final float
private static final float
private static final float
private static final float
private static final int
private static final float
private static final float
private static final float
private final Minecraft
private float
private ItemStack
private float
private float
-
Constructor Summary
ConstructorDescriptionItemInHandRenderer
(Minecraft p_234241_, EntityRenderDispatcher p_234242_, ItemRenderer p_234243_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
applyBrushTransform
(PoseStack p_273513_, float p_273245_, HumanoidArm p_273726_, ItemStack p_272809_, float p_273333_) private 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_270072_, ItemStack p_270793_, ItemDisplayContext p_270837_, boolean p_270203_, PoseStack p_270974_, MultiBufferSource p_270686_, int p_270103_) 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:
-
ITEM_SWING_Y_POS_SCALE
private static final float ITEM_SWING_Y_POS_SCALE- See Also:
-
ITEM_SWING_Z_POS_SCALE
private static final float ITEM_SWING_Z_POS_SCALE- See Also:
-
ITEM_HEIGHT_SCALE
private static final float ITEM_HEIGHT_SCALE- See Also:
-
ITEM_POS_X
private static final float ITEM_POS_X- See Also:
-
ITEM_POS_Y
private static final float ITEM_POS_Y- See Also:
-
ITEM_POS_Z
private static final float ITEM_POS_Z- See Also:
-
ITEM_PRESWING_ROT_Y
private static final float ITEM_PRESWING_ROT_Y- See Also:
-
ITEM_SWING_X_ROT_AMOUNT
private static final float ITEM_SWING_X_ROT_AMOUNT- See Also:
-
ITEM_SWING_Y_ROT_AMOUNT
private static final float ITEM_SWING_Y_ROT_AMOUNT- See Also:
-
ITEM_SWING_Z_ROT_AMOUNT
private static final float ITEM_SWING_Z_ROT_AMOUNT- See Also:
-
EAT_JIGGLE_X_ROT_AMOUNT
private static final float EAT_JIGGLE_X_ROT_AMOUNT- See Also:
-
EAT_JIGGLE_Y_ROT_AMOUNT
private static final float EAT_JIGGLE_Y_ROT_AMOUNT- See Also:
-
EAT_JIGGLE_Z_ROT_AMOUNT
private static final float EAT_JIGGLE_Z_ROT_AMOUNT- See Also:
-
EAT_JIGGLE_X_POS_SCALE
private static final float EAT_JIGGLE_X_POS_SCALE- See Also:
-
EAT_JIGGLE_Y_POS_SCALE
private static final float EAT_JIGGLE_Y_POS_SCALE- See Also:
-
EAT_JIGGLE_Z_POS_SCALE
private static final float EAT_JIGGLE_Z_POS_SCALE- See Also:
-
EAT_JIGGLE_EXPONENT
private static final double EAT_JIGGLE_EXPONENT- See Also:
-
EAT_EXTRA_JIGGLE_CUTOFF
private static final float EAT_EXTRA_JIGGLE_CUTOFF- See Also:
-
EAT_EXTRA_JIGGLE_SCALE
private static final float EAT_EXTRA_JIGGLE_SCALE- See Also:
-
ARM_SWING_X_POS_SCALE
private static final float ARM_SWING_X_POS_SCALE- See Also:
-
ARM_SWING_Y_POS_SCALE
private static final float ARM_SWING_Y_POS_SCALE- See Also:
-
ARM_SWING_Z_POS_SCALE
private static final float ARM_SWING_Z_POS_SCALE- See Also:
-
ARM_SWING_Y_ROT_AMOUNT
private static final float ARM_SWING_Y_ROT_AMOUNT- See Also:
-
ARM_SWING_Z_ROT_AMOUNT
private static final float ARM_SWING_Z_ROT_AMOUNT- See Also:
-
ARM_HEIGHT_SCALE
private static final float ARM_HEIGHT_SCALE- See Also:
-
ARM_POS_SCALE
private static final float ARM_POS_SCALE- See Also:
-
ARM_POS_X
private static final float ARM_POS_X- See Also:
-
ARM_POS_Y
private static final float ARM_POS_Y- See Also:
-
ARM_POS_Z
private static final float ARM_POS_Z- See Also:
-
ARM_PRESWING_ROT_Y
private static final float ARM_PRESWING_ROT_Y- See Also:
-
ARM_PREROTATION_X_OFFSET
private static final float ARM_PREROTATION_X_OFFSET- See Also:
-
ARM_PREROTATION_Y_OFFSET
private static final float ARM_PREROTATION_Y_OFFSET- See Also:
-
ARM_PREROTATION_Z_OFFSET
private static final float ARM_PREROTATION_Z_OFFSET- See Also:
-
ARM_POSTROTATION_X_OFFSET
private static final float ARM_POSTROTATION_X_OFFSET- See Also:
-
ARM_ROT_X
private static final int ARM_ROT_X- See Also:
-
ARM_ROT_Y
private static final int ARM_ROT_Y- See Also:
-
ARM_ROT_Z
private static final int ARM_ROT_Z- See Also:
-
MAP_SWING_X_POS_SCALE
private static final float MAP_SWING_X_POS_SCALE- See Also:
-
MAP_SWING_Z_POS_SCALE
private static final float MAP_SWING_Z_POS_SCALE- See Also:
-
MAP_HANDS_POS_X
private static final float MAP_HANDS_POS_X- See Also:
-
MAP_HANDS_POS_Y
private static final float MAP_HANDS_POS_Y- See Also:
-
MAP_HANDS_POS_Z
private static final float MAP_HANDS_POS_Z- See Also:
-
MAP_HANDS_HEIGHT_SCALE
private static final float MAP_HANDS_HEIGHT_SCALE- See Also:
-
MAP_HANDS_TILT_SCALE
private static final float MAP_HANDS_TILT_SCALE- See Also:
-
MAP_PLAYER_PITCH_SCALE
private static final float MAP_PLAYER_PITCH_SCALE- See Also:
-
MAP_HANDS_Z_ROT_AMOUNT
private static final float MAP_HANDS_Z_ROT_AMOUNT- See Also:
-
MAPHAND_X_ROT_AMOUNT
private static final float MAPHAND_X_ROT_AMOUNT- See Also:
-
MAPHAND_Y_ROT_AMOUNT
private static final float MAPHAND_Y_ROT_AMOUNT- See Also:
-
MAPHAND_Z_ROT_AMOUNT
private static final float MAPHAND_Z_ROT_AMOUNT- See Also:
-
MAP_HAND_X_POS
private static final float MAP_HAND_X_POS- See Also:
-
MAP_HAND_Y_POS
private static final float MAP_HAND_Y_POS- See Also:
-
MAP_HAND_Z_POS
private static final float MAP_HAND_Z_POS- See Also:
-
MAP_SWING_X_ROT_AMOUNT
private static final float MAP_SWING_X_ROT_AMOUNT- See Also:
-
MAP_PRE_ROT_SCALE
private static final float MAP_PRE_ROT_SCALE- See Also:
-
MAP_GLOBAL_X_POS
private static final float MAP_GLOBAL_X_POS- See Also:
-
MAP_GLOBAL_Y_POS
private static final float MAP_GLOBAL_Y_POS- See Also:
-
MAP_GLOBAL_Z_POS
private static final float MAP_GLOBAL_Z_POS- See Also:
-
MAP_FINAL_SCALE
private static final float MAP_FINAL_SCALE- See Also:
-
MAP_BORDER
private static final int MAP_BORDER- See Also:
-
MAP_HEIGHT
private static final int MAP_HEIGHT- See Also:
-
MAP_WIDTH
private static final int MAP_WIDTH- See Also:
-
BOW_CHARGE_X_POS_SCALE
private static final float BOW_CHARGE_X_POS_SCALE- See Also:
-
BOW_CHARGE_Y_POS_SCALE
private static final float BOW_CHARGE_Y_POS_SCALE- See Also:
-
BOW_CHARGE_Z_POS_SCALE
private static final float BOW_CHARGE_Z_POS_SCALE- See Also:
-
BOW_CHARGE_SHAKE_X_SCALE
private static final float BOW_CHARGE_SHAKE_X_SCALE- See Also:
-
BOW_CHARGE_SHAKE_Y_SCALE
private static final float BOW_CHARGE_SHAKE_Y_SCALE- See Also:
-
BOW_CHARGE_SHAKE_Z_SCALE
private static final float BOW_CHARGE_SHAKE_Z_SCALE- See Also:
-
BOW_CHARGE_Z_SCALE
private static final float BOW_CHARGE_Z_SCALE- See Also:
-
BOW_MIN_SHAKE_CHARGE
private static final float BOW_MIN_SHAKE_CHARGE- See Also:
-
minecraft
-
mainHandItem
-
offHandItem
-
mainHandHeight
private float mainHandHeight -
oMainHandHeight
private float oMainHandHeight -
offHandHeight
private float offHandHeight -
oOffHandHeight
private float oOffHandHeight -
entityRenderDispatcher
-
itemRenderer
-
-
Constructor Details
-
ItemInHandRenderer
public ItemInHandRenderer(Minecraft p_234241_, EntityRenderDispatcher p_234242_, ItemRenderer p_234243_)
-
-
Method Details
-
renderItem
public void renderItem(LivingEntity p_270072_, ItemStack p_270793_, ItemDisplayContext p_270837_, boolean p_270203_, PoseStack p_270974_, MultiBufferSource p_270686_, int p_270103_) -
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_) -
applyBrushTransform
private void applyBrushTransform(PoseStack p_273513_, float p_273245_, HumanoidArm p_273726_, ItemStack p_272809_, float p_273333_) -
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
-