Class HeldItemRenderer

java.lang.Object
net.minecraft.client.render.item.HeldItemRenderer

@Environment(CLIENT)
public class HeldItemRenderer
extends Object
Mappings:
Namespace Name
official ehm
intermediary net/minecraft/class_759
named net/minecraft/client/render/item/HeldItemRenderer
  • Field Details

    • MAP_BACKGROUND

      private static final RenderLayer MAP_BACKGROUND
      Mappings:
      Namespace Name Mixin selector
      official a Lehm;a:Lehy;
      intermediary field_21807 Lnet/minecraft/class_759;field_21807:Lnet/minecraft/class_1921;
      named MAP_BACKGROUND Lnet/minecraft/client/render/item/HeldItemRenderer;MAP_BACKGROUND:Lnet/minecraft/client/render/RenderLayer;
    • MAP_BACKGROUND_CHECKERBOARD

      private static final RenderLayer MAP_BACKGROUND_CHECKERBOARD
      Mappings:
      Namespace Name Mixin selector
      official b Lehm;b:Lehy;
      intermediary field_21808 Lnet/minecraft/class_759;field_21808:Lnet/minecraft/class_1921;
      named MAP_BACKGROUND_CHECKERBOARD Lnet/minecraft/client/render/item/HeldItemRenderer;MAP_BACKGROUND_CHECKERBOARD:Lnet/minecraft/client/render/RenderLayer;
    • client

      private final MinecraftClient client
      Mappings:
      Namespace Name Mixin selector
      official c Lehm;c:Ldqk;
      intermediary field_4050 Lnet/minecraft/class_759;field_4050:Lnet/minecraft/class_310;
      named client Lnet/minecraft/client/render/item/HeldItemRenderer;client:Lnet/minecraft/client/MinecraftClient;
    • mainHand

      private ItemStack mainHand
      Mappings:
      Namespace Name Mixin selector
      official d Lehm;d:Lbnv;
      intermediary field_4047 Lnet/minecraft/class_759;field_4047:Lnet/minecraft/class_1799;
      named mainHand Lnet/minecraft/client/render/item/HeldItemRenderer;mainHand:Lnet/minecraft/item/ItemStack;
    • offHand

      private ItemStack offHand
      Mappings:
      Namespace Name Mixin selector
      official e Lehm;e:Lbnv;
      intermediary field_4048 Lnet/minecraft/class_759;field_4048:Lnet/minecraft/class_1799;
      named offHand Lnet/minecraft/client/render/item/HeldItemRenderer;offHand:Lnet/minecraft/item/ItemStack;
    • equipProgressMainHand

      private float equipProgressMainHand
      Mappings:
      Namespace Name Mixin selector
      official f Lehm;f:F
      intermediary field_4043 Lnet/minecraft/class_759;field_4043:F
      named equipProgressMainHand Lnet/minecraft/client/render/item/HeldItemRenderer;equipProgressMainHand:F
    • prevEquipProgressMainHand

      private float prevEquipProgressMainHand
      Mappings:
      Namespace Name Mixin selector
      official g Lehm;g:F
      intermediary field_4053 Lnet/minecraft/class_759;field_4053:F
      named prevEquipProgressMainHand Lnet/minecraft/client/render/item/HeldItemRenderer;prevEquipProgressMainHand:F
    • equipProgressOffHand

      private float equipProgressOffHand
      Mappings:
      Namespace Name Mixin selector
      official h Lehm;h:F
      intermediary field_4052 Lnet/minecraft/class_759;field_4052:F
      named equipProgressOffHand Lnet/minecraft/client/render/item/HeldItemRenderer;equipProgressOffHand:F
    • prevEquipProgressOffHand

      private float prevEquipProgressOffHand
      Mappings:
      Namespace Name Mixin selector
      official i Lehm;i:F
      intermediary field_4051 Lnet/minecraft/class_759;field_4051:F
      named prevEquipProgressOffHand Lnet/minecraft/client/render/item/HeldItemRenderer;prevEquipProgressOffHand:F
    • renderManager

      private final EntityRenderDispatcher renderManager
      Mappings:
      Namespace Name Mixin selector
      official j Lehm;j:Lemh;
      intermediary field_4046 Lnet/minecraft/class_759;field_4046:Lnet/minecraft/class_898;
      named renderManager Lnet/minecraft/client/render/item/HeldItemRenderer;renderManager:Lnet/minecraft/client/render/entity/EntityRenderDispatcher;
    • itemRenderer

      private final ItemRenderer itemRenderer
      Mappings:
      Namespace Name Mixin selector
      official k Lehm;k:Lenf;
      intermediary field_4044 Lnet/minecraft/class_759;field_4044:Lnet/minecraft/class_918;
      named itemRenderer Lnet/minecraft/client/render/item/HeldItemRenderer;itemRenderer:Lnet/minecraft/client/render/item/ItemRenderer;
  • Constructor Details

    • HeldItemRenderer

      public HeldItemRenderer​(MinecraftClient client)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lehm;<init>(Ldqk;)V
      intermediary <init> Lnet/minecraft/class_759;<init>(Lnet/minecraft/class_310;)V
      named <init> Lnet/minecraft/client/render/item/HeldItemRenderer;<init>(Lnet/minecraft/client/MinecraftClient;)V
  • Method Details

    • renderItem

      public void renderItem​(LivingEntity entity, ItemStack stack, ModelTransformation.Mode renderMode, boolean leftHanded, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light)
      Mappings:
      Namespace Name Mixin selector
      official a Lehm;a(Lari;Lbnv;Leiw$b;ZLdlr;Lehq;I)V
      intermediary method_3233 Lnet/minecraft/class_759;method_3233(Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;Lnet/minecraft/class_809$class_811;ZLnet/minecraft/class_4587;Lnet/minecraft/class_4597;I)V
      named renderItem Lnet/minecraft/client/render/item/HeldItemRenderer;renderItem(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;Lnet/minecraft/client/render/model/json/ModelTransformation$Mode;ZLnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;I)V
    • getMapAngle

      private float getMapAngle​(float tickDelta)
      Mappings:
      Namespace Name Mixin selector
      official a Lehm;a(F)F
      intermediary method_3227 Lnet/minecraft/class_759;method_3227(F)F
      named getMapAngle Lnet/minecraft/client/render/item/HeldItemRenderer;getMapAngle(F)F
    • renderArm

      private void renderArm​(MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, Arm arm)
      Mappings:
      Namespace Name Mixin selector
      official a Lehm;a(Ldlr;Lehq;ILare;)V
      intermediary method_3216 Lnet/minecraft/class_759;method_3216(Lnet/minecraft/class_4587;Lnet/minecraft/class_4597;ILnet/minecraft/class_1306;)V
      named renderArm Lnet/minecraft/client/render/item/HeldItemRenderer;renderArm(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;ILnet/minecraft/util/Arm;)V
    • renderMapInOneHand

      private void renderMapInOneHand​(MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, float equipProgress, Arm arm, float swingProgress, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lehm;a(Ldlr;Lehq;IFLare;FLbnv;)V
      intermediary method_3222 Lnet/minecraft/class_759;method_3222(Lnet/minecraft/class_4587;Lnet/minecraft/class_4597;IFLnet/minecraft/class_1306;FLnet/minecraft/class_1799;)V
      named renderMapInOneHand Lnet/minecraft/client/render/item/HeldItemRenderer;renderMapInOneHand(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;IFLnet/minecraft/util/Arm;FLnet/minecraft/item/ItemStack;)V
    • renderMapInBothHands

      private void renderMapInBothHands​(MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, float pitch, float equipProgress, float swingProgress)
      Mappings:
      Namespace Name Mixin selector
      official a Lehm;a(Ldlr;Lehq;IFFF)V
      intermediary method_3231 Lnet/minecraft/class_759;method_3231(Lnet/minecraft/class_4587;Lnet/minecraft/class_4597;IFFF)V
      named renderMapInBothHands Lnet/minecraft/client/render/item/HeldItemRenderer;renderMapInBothHands(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;IFFF)V
    • renderFirstPersonMap

      private void renderFirstPersonMap​(MatrixStack matrices, VertexConsumerProvider vertexConsumers, int swingProgress, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lehm;a(Ldlr;Lehq;ILbnv;)V
      intermediary method_3223 Lnet/minecraft/class_759;method_3223(Lnet/minecraft/class_4587;Lnet/minecraft/class_4597;ILnet/minecraft/class_1799;)V
      named renderFirstPersonMap Lnet/minecraft/client/render/item/HeldItemRenderer;renderFirstPersonMap(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;ILnet/minecraft/item/ItemStack;)V
    • renderArmHoldingItem

      private void renderArmHoldingItem​(MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, float equipProgress, float swingProgress, Arm arm)
      Mappings:
      Namespace Name Mixin selector
      official a Lehm;a(Ldlr;Lehq;IFFLare;)V
      intermediary method_3219 Lnet/minecraft/class_759;method_3219(Lnet/minecraft/class_4587;Lnet/minecraft/class_4597;IFFLnet/minecraft/class_1306;)V
      named renderArmHoldingItem Lnet/minecraft/client/render/item/HeldItemRenderer;renderArmHoldingItem(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;IFFLnet/minecraft/util/Arm;)V
    • applyEatOrDrinkTransformation

      private void applyEatOrDrinkTransformation​(MatrixStack matrices, float tickDelta, Arm arm, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lehm;a(Ldlr;FLare;Lbnv;)V
      intermediary method_3218 Lnet/minecraft/class_759;method_3218(Lnet/minecraft/class_4587;FLnet/minecraft/class_1306;Lnet/minecraft/class_1799;)V
      named applyEatOrDrinkTransformation Lnet/minecraft/client/render/item/HeldItemRenderer;applyEatOrDrinkTransformation(Lnet/minecraft/client/util/math/MatrixStack;FLnet/minecraft/util/Arm;Lnet/minecraft/item/ItemStack;)V
    • applySwingOffset

      private void applySwingOffset​(MatrixStack matrices, Arm arm, float swingProgress)
      Mappings:
      Namespace Name Mixin selector
      official a Lehm;a(Ldlr;Lare;F)V
      intermediary method_3217 Lnet/minecraft/class_759;method_3217(Lnet/minecraft/class_4587;Lnet/minecraft/class_1306;F)V
      named applySwingOffset Lnet/minecraft/client/render/item/HeldItemRenderer;applySwingOffset(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/util/Arm;F)V
    • applyEquipOffset

      private void applyEquipOffset​(MatrixStack matrices, Arm arm, float equipProgress)
      Mappings:
      Namespace Name Mixin selector
      official b Lehm;b(Ldlr;Lare;F)V
      intermediary method_3224 Lnet/minecraft/class_759;method_3224(Lnet/minecraft/class_4587;Lnet/minecraft/class_1306;F)V
      named applyEquipOffset Lnet/minecraft/client/render/item/HeldItemRenderer;applyEquipOffset(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/util/Arm;F)V
    • renderItem

      public void renderItem​(float tickDelta, MatrixStack matrices, VertexConsumerProvider.Immediate vertexConsumers, ClientPlayerEntity player, int light)
      Mappings:
      Namespace Name Mixin selector
      official a Lehm;a(FLdlr;Lehq$a;Legw;I)V
      intermediary method_22976 Lnet/minecraft/class_759;method_22976(FLnet/minecraft/class_4587;Lnet/minecraft/class_4597$class_4598;Lnet/minecraft/class_746;I)V
      named renderItem Lnet/minecraft/client/render/item/HeldItemRenderer;renderItem(FLnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider$Immediate;Lnet/minecraft/client/network/ClientPlayerEntity;I)V
    • method_33303

      static HeldItemRenderer.HandRenderType method_33303​(ClientPlayerEntity clientPlayerEntity)
      Mappings:
      Namespace Name Mixin selector
      official a Lehm;a(Legw;)Lehm$a;
      intermediary method_33303 Lnet/minecraft/class_759;method_33303(Lnet/minecraft/class_746;)Lnet/minecraft/class_759$class_5773;
      named method_33303 Lnet/minecraft/client/render/item/HeldItemRenderer;method_33303(Lnet/minecraft/client/network/ClientPlayerEntity;)Lnet/minecraft/client/render/item/HeldItemRenderer$HandRenderType;
    • method_33304

      private static HeldItemRenderer.HandRenderType method_33304​(ClientPlayerEntity clientPlayerEntity)
      Mappings:
      Namespace Name Mixin selector
      official b Lehm;b(Legw;)Lehm$a;
      intermediary method_33304 Lnet/minecraft/class_759;method_33304(Lnet/minecraft/class_746;)Lnet/minecraft/class_759$class_5773;
      named method_33304 Lnet/minecraft/client/render/item/HeldItemRenderer;method_33304(Lnet/minecraft/client/network/ClientPlayerEntity;)Lnet/minecraft/client/render/item/HeldItemRenderer$HandRenderType;
    • isChargedCrossbow

      private static boolean isChargedCrossbow​(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lehm;a(Lbnv;)Z
      intermediary method_33302 Lnet/minecraft/class_759;method_33302(Lnet/minecraft/class_1799;)Z
      named isChargedCrossbow Lnet/minecraft/client/render/item/HeldItemRenderer;isChargedCrossbow(Lnet/minecraft/item/ItemStack;)Z
    • renderFirstPersonItem

      private void renderFirstPersonItem​(AbstractClientPlayerEntity player, float tickDelta, float pitch, Hand hand, float swingProgress, ItemStack item, float equipProgress, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light)
      Mappings:
      Namespace Name Mixin selector
      official a Lehm;a(Legt;FFLapp;FLbnv;FLdlr;Lehq;I)V
      intermediary method_3228 Lnet/minecraft/class_759;method_3228(Lnet/minecraft/class_742;FFLnet/minecraft/class_1268;FLnet/minecraft/class_1799;FLnet/minecraft/class_4587;Lnet/minecraft/class_4597;I)V
      named renderFirstPersonItem Lnet/minecraft/client/render/item/HeldItemRenderer;renderFirstPersonItem(Lnet/minecraft/client/network/AbstractClientPlayerEntity;FFLnet/minecraft/util/Hand;FLnet/minecraft/item/ItemStack;FLnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;I)V
    • updateHeldItems

      public void updateHeldItems()
      Mappings:
      Namespace Name Mixin selector
      official a Lehm;a()V
      intermediary method_3220 Lnet/minecraft/class_759;method_3220()V
      named updateHeldItems Lnet/minecraft/client/render/item/HeldItemRenderer;updateHeldItems()V
    • resetEquipProgress

      public void resetEquipProgress​(Hand hand)
      Mappings:
      Namespace Name Mixin selector
      official a Lehm;a(Lapp;)V
      intermediary method_3215 Lnet/minecraft/class_759;method_3215(Lnet/minecraft/class_1268;)V
      named resetEquipProgress Lnet/minecraft/client/render/item/HeldItemRenderer;resetEquipProgress(Lnet/minecraft/util/Hand;)V