Class ItemRenderer

java.lang.Object
net.minecraft.client.render.item.ItemRenderer
All Implemented Interfaces:
ResourceReloader, SynchronousResourceReloader

@Environment(CLIENT) public class ItemRenderer extends Object implements SynchronousResourceReloader
Mappings:
Namespace Name
named net/minecraft/client/render/item/ItemRenderer
intermediary net/minecraft/class_918
official gsn
  • Field Details

    • ENTITY_ENCHANTMENT_GLINT

      public static final Identifier ENTITY_ENCHANTMENT_GLINT
      Mappings:
      Namespace Name Mixin selector
      named ENTITY_ENCHANTMENT_GLINT Lnet/minecraft/client/render/item/ItemRenderer;ENTITY_ENCHANTMENT_GLINT:Lnet/minecraft/util/Identifier;
      intermediary field_43086 Lnet/minecraft/class_918;field_43086:Lnet/minecraft/class_2960;
      official a Lgsn;a:Lalz;
    • ITEM_ENCHANTMENT_GLINT

      public static final Identifier ITEM_ENCHANTMENT_GLINT
      Mappings:
      Namespace Name Mixin selector
      named ITEM_ENCHANTMENT_GLINT Lnet/minecraft/client/render/item/ItemRenderer;ITEM_ENCHANTMENT_GLINT:Lnet/minecraft/util/Identifier;
      intermediary field_43087 Lnet/minecraft/class_918;field_43087:Lnet/minecraft/class_2960;
      official b Lgsn;b:Lalz;
    • field_32937

      public static final int field_32937
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_32937 Lnet/minecraft/client/render/item/ItemRenderer;field_32937:I
      intermediary field_32937 Lnet/minecraft/class_918;field_32937:I
      official c Lgsn;c:I
    • field_32938

      public static final int field_32938
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_32938 Lnet/minecraft/client/render/item/ItemRenderer;field_32938:I
      intermediary field_32938 Lnet/minecraft/class_918;field_32938:I
      official d Lgsn;d:I
    • field_32934

      public static final int field_32934
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_32934 Lnet/minecraft/client/render/item/ItemRenderer;field_32934:I
      intermediary field_32934 Lnet/minecraft/class_918;field_32934:I
      official e Lgsn;e:I
    • COMPASS_WITH_GLINT_GUI_MODEL_MULTIPLIER

      public static final float COMPASS_WITH_GLINT_GUI_MODEL_MULTIPLIER
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named COMPASS_WITH_GLINT_GUI_MODEL_MULTIPLIER Lnet/minecraft/client/render/item/ItemRenderer;COMPASS_WITH_GLINT_GUI_MODEL_MULTIPLIER:F
      intermediary field_32935 Lnet/minecraft/class_918;field_32935:F
      official f Lgsn;f:F
    • COMPASS_WITH_GLINT_FIRST_PERSON_MODEL_MULTIPLIER

      public static final float COMPASS_WITH_GLINT_FIRST_PERSON_MODEL_MULTIPLIER
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named COMPASS_WITH_GLINT_FIRST_PERSON_MODEL_MULTIPLIER Lnet/minecraft/client/render/item/ItemRenderer;COMPASS_WITH_GLINT_FIRST_PERSON_MODEL_MULTIPLIER:F
      intermediary field_32936 Lnet/minecraft/class_918;field_32936:F
      official g Lgsn;g:F
    • field_41120

      public static final float field_41120
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_41120 Lnet/minecraft/client/render/item/ItemRenderer;field_41120:F
      intermediary field_41120 Lnet/minecraft/class_918;field_41120:F
      official h Lgsn;h:F
    • TRIDENT

      public static final ModelIdentifier TRIDENT
      Mappings:
      Namespace Name Mixin selector
      named TRIDENT Lnet/minecraft/client/render/item/ItemRenderer;TRIDENT:Lnet/minecraft/client/util/ModelIdentifier;
      intermediary field_40532 Lnet/minecraft/class_918;field_40532:Lnet/minecraft/class_1091;
      official i Lgsn;i:Lhea;
    • SPYGLASS

      public static final ModelIdentifier SPYGLASS
      Mappings:
      Namespace Name Mixin selector
      named SPYGLASS Lnet/minecraft/client/render/item/ItemRenderer;SPYGLASS:Lnet/minecraft/client/util/ModelIdentifier;
      intermediary field_40533 Lnet/minecraft/class_918;field_40533:Lnet/minecraft/class_1091;
      official j Lgsn;j:Lhea;
    • bakedModelManager

      private final BakedModelManager bakedModelManager
      Mappings:
      Namespace Name Mixin selector
      named bakedModelManager Lnet/minecraft/client/render/item/ItemRenderer;bakedModelManager:Lnet/minecraft/client/render/model/BakedModelManager;
      intermediary field_54176 Lnet/minecraft/class_918;field_54176:Lnet/minecraft/class_1092;
      official k Lgsn;k:Lhdz;
    • models

      private final ItemModels models
      Mappings:
      Namespace Name Mixin selector
      named models Lnet/minecraft/client/render/item/ItemRenderer;models:Lnet/minecraft/client/render/item/ItemModels;
      intermediary field_4732 Lnet/minecraft/class_918;field_4732:Lnet/minecraft/class_763;
      official l Lgsn;l:Lgle;
    • colors

      private final ItemColors colors
      Mappings:
      Namespace Name Mixin selector
      named colors Lnet/minecraft/client/render/item/ItemRenderer;colors:Lnet/minecraft/client/color/item/ItemColors;
      intermediary field_4733 Lnet/minecraft/class_918;field_4733:Lnet/minecraft/class_325;
      official m Lgsn;m:Lfnl;
    • builtinModelItemRenderer

      private final BuiltinModelItemRenderer builtinModelItemRenderer
      Mappings:
      Namespace Name Mixin selector
      named builtinModelItemRenderer Lnet/minecraft/client/render/item/ItemRenderer;builtinModelItemRenderer:Lnet/minecraft/client/render/item/BuiltinModelItemRenderer;
      intermediary field_27770 Lnet/minecraft/class_918;field_27770:Lnet/minecraft/class_756;
      official n Lgsn;n:Lgkr;
  • Constructor Details

    • ItemRenderer

      public ItemRenderer(BakedModelManager bakedModelManager, ItemColors colors, BuiltinModelItemRenderer builtinModelItemRenderer)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/render/item/ItemRenderer;<init>(Lnet/minecraft/client/render/model/BakedModelManager;Lnet/minecraft/client/color/item/ItemColors;Lnet/minecraft/client/render/item/BuiltinModelItemRenderer;)V
      intermediary <init> Lnet/minecraft/class_918;<init>(Lnet/minecraft/class_1092;Lnet/minecraft/class_325;Lnet/minecraft/class_756;)V
      official <init> Lgsn;<init>(Lhdz;Lfnl;Lgkr;)V
  • Method Details

    • renderBakedItemModel

      private void renderBakedItemModel(BakedModel model, ItemStack stack, int light, int overlay, MatrixStack matrices, VertexConsumer vertices)
      Mappings:
      Namespace Name Mixin selector
      named renderBakedItemModel Lnet/minecraft/client/render/item/ItemRenderer;renderBakedItemModel(Lnet/minecraft/client/render/model/BakedModel;Lnet/minecraft/item/ItemStack;IILnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumer;)V
      intermediary method_23182 Lnet/minecraft/class_918;method_23182(Lnet/minecraft/class_1087;Lnet/minecraft/class_1799;IILnet/minecraft/class_4587;Lnet/minecraft/class_4588;)V
      official a Lgsn;a(Lhdm;Lcxo;IILfgr;Lfgv;)V
    • renderItem

      public void renderItem(ItemStack stack, ModelTransformationMode transformationMode, boolean leftHanded, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, int overlay, BakedModel model)
      Mappings:
      Namespace Name Mixin selector
      named renderItem Lnet/minecraft/client/render/item/ItemRenderer;renderItem(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ModelTransformationMode;ZLnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;IILnet/minecraft/client/render/model/BakedModel;)V
      intermediary method_23179 Lnet/minecraft/class_918;method_23179(Lnet/minecraft/class_1799;Lnet/minecraft/class_811;ZLnet/minecraft/class_4587;Lnet/minecraft/class_4597;IILnet/minecraft/class_1087;)V
      official a Lgsn;a(Lcxo;Lcxm;ZLfgr;Lglk;IILhdm;)V
    • renderBundle

      public void renderBundle(ItemStack stack, ModelTransformationMode transformationMode, boolean leftHanded, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, int overlay, BakedModel model, @Nullable @Nullable World world, @Nullable @Nullable LivingEntity entity, int seed)
      Mappings:
      Namespace Name Mixin selector
      named renderBundle Lnet/minecraft/client/render/item/ItemRenderer;renderBundle(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ModelTransformationMode;ZLnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;IILnet/minecraft/client/render/model/BakedModel;Lnet/minecraft/world/World;Lnet/minecraft/entity/LivingEntity;I)V
      intermediary method_62477 Lnet/minecraft/class_918;method_62477(Lnet/minecraft/class_1799;Lnet/minecraft/class_811;ZLnet/minecraft/class_4587;Lnet/minecraft/class_4597;IILnet/minecraft/class_1087;Lnet/minecraft/class_1937;Lnet/minecraft/class_1309;I)V
      official a Lgsn;a(Lcxo;Lcxm;ZLfgr;Lglk;IILhdm;Ldhh;Lbwf;I)V
    • renderItem

      private void renderItem(ItemStack stack, ModelTransformationMode transformationMode, boolean leftHanded, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, int overlay, BakedModel model, boolean useInventoryModel)
      Mappings:
      Namespace Name Mixin selector
      named renderItem Lnet/minecraft/client/render/item/ItemRenderer;renderItem(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ModelTransformationMode;ZLnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;IILnet/minecraft/client/render/model/BakedModel;Z)V
      intermediary method_64073 Lnet/minecraft/class_918;method_64073(Lnet/minecraft/class_1799;Lnet/minecraft/class_811;ZLnet/minecraft/class_4587;Lnet/minecraft/class_4597;IILnet/minecraft/class_1087;Z)V
      official a Lgsn;a(Lcxo;Lcxm;ZLfgr;Lglk;IILhdm;Z)V
    • renderItem

      private void renderItem(ItemStack stack, ModelTransformationMode transformationMode, boolean leftHanded, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, int overlay, BakedModel model, boolean useInventoryModel, float z)
      Mappings:
      Namespace Name Mixin selector
      named renderItem Lnet/minecraft/client/render/item/ItemRenderer;renderItem(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ModelTransformationMode;ZLnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;IILnet/minecraft/client/render/model/BakedModel;ZF)V
      intermediary method_64074 Lnet/minecraft/class_918;method_64074(Lnet/minecraft/class_1799;Lnet/minecraft/class_811;ZLnet/minecraft/class_4587;Lnet/minecraft/class_4597;IILnet/minecraft/class_1087;ZF)V
      official a Lgsn;a(Lcxo;Lcxm;ZLfgr;Lglk;IILhdm;ZF)V
    • renderItem

      private void renderItem(ItemStack stack, ModelTransformationMode transformationMode, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, int overlay, BakedModel model, boolean useInventoryModel)
      Mappings:
      Namespace Name Mixin selector
      named renderItem Lnet/minecraft/client/render/item/ItemRenderer;renderItem(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ModelTransformationMode;Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;IILnet/minecraft/client/render/model/BakedModel;Z)V
      intermediary method_62476 Lnet/minecraft/class_918;method_62476(Lnet/minecraft/class_1799;Lnet/minecraft/class_811;Lnet/minecraft/class_4587;Lnet/minecraft/class_4597;IILnet/minecraft/class_1087;Z)V
      official a Lgsn;a(Lcxo;Lcxm;Lfgr;Lglk;IILhdm;Z)V
    • shouldUseInventoryModel

      private static boolean shouldUseInventoryModel(ModelTransformationMode transformationMode)
      Mappings:
      Namespace Name Mixin selector
      named shouldUseInventoryModel Lnet/minecraft/client/render/item/ItemRenderer;shouldUseInventoryModel(Lnet/minecraft/item/ModelTransformationMode;)Z
      intermediary method_64255 Lnet/minecraft/class_918;method_64255(Lnet/minecraft/class_811;)Z
      official a Lgsn;a(Lcxm;)Z
    • usesDynamicDisplay

      private static boolean usesDynamicDisplay(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named usesDynamicDisplay Lnet/minecraft/client/render/item/ItemRenderer;usesDynamicDisplay(Lnet/minecraft/item/ItemStack;)Z
      intermediary method_51795 Lnet/minecraft/class_918;method_51795(Lnet/minecraft/class_1799;)Z
      official a Lgsn;a(Lcxo;)Z
    • getArmorGlintConsumer

      public static VertexConsumer getArmorGlintConsumer(VertexConsumerProvider provider, RenderLayer layer, boolean glint)
      Mappings:
      Namespace Name Mixin selector
      named getArmorGlintConsumer Lnet/minecraft/client/render/item/ItemRenderer;getArmorGlintConsumer(Lnet/minecraft/client/render/VertexConsumerProvider;Lnet/minecraft/client/render/RenderLayer;Z)Lnet/minecraft/client/render/VertexConsumer;
      intermediary method_27952 Lnet/minecraft/class_918;method_27952(Lnet/minecraft/class_4597;Lnet/minecraft/class_1921;Z)Lnet/minecraft/class_4588;
      official a Lgsn;a(Lglk;Lglu;Z)Lfgv;
    • getDynamicDisplayGlintConsumer

      public static VertexConsumer getDynamicDisplayGlintConsumer(VertexConsumerProvider provider, RenderLayer layer, MatrixStack.Entry entry)
      Mappings:
      Namespace Name Mixin selector
      named getDynamicDisplayGlintConsumer Lnet/minecraft/client/render/item/ItemRenderer;getDynamicDisplayGlintConsumer(Lnet/minecraft/client/render/VertexConsumerProvider;Lnet/minecraft/client/render/RenderLayer;Lnet/minecraft/client/util/math/MatrixStack$Entry;)Lnet/minecraft/client/render/VertexConsumer;
      intermediary method_30114 Lnet/minecraft/class_918;method_30114(Lnet/minecraft/class_4597;Lnet/minecraft/class_1921;Lnet/minecraft/class_4587$class_4665;)Lnet/minecraft/class_4588;
      official a Lgsn;a(Lglk;Lglu;Lfgr$a;)Lfgv;
    • getItemGlintConsumer

      public static VertexConsumer getItemGlintConsumer(VertexConsumerProvider vertexConsumers, RenderLayer layer, boolean solid, boolean glint)
      Mappings:
      Namespace Name Mixin selector
      named getItemGlintConsumer Lnet/minecraft/client/render/item/ItemRenderer;getItemGlintConsumer(Lnet/minecraft/client/render/VertexConsumerProvider;Lnet/minecraft/client/render/RenderLayer;ZZ)Lnet/minecraft/client/render/VertexConsumer;
      intermediary method_23181 Lnet/minecraft/class_918;method_23181(Lnet/minecraft/class_4597;Lnet/minecraft/class_1921;ZZ)Lnet/minecraft/class_4588;
      official a Lgsn;a(Lglk;Lglu;ZZ)Lfgv;
    • renderBakedItemQuads

      private void renderBakedItemQuads(MatrixStack matrices, VertexConsumer vertices, List<BakedQuad> quads, ItemStack stack, int light, int overlay)
      Mappings:
      Namespace Name Mixin selector
      named renderBakedItemQuads Lnet/minecraft/client/render/item/ItemRenderer;renderBakedItemQuads(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumer;Ljava/util/List;Lnet/minecraft/item/ItemStack;II)V
      intermediary method_23180 Lnet/minecraft/class_918;method_23180(Lnet/minecraft/class_4587;Lnet/minecraft/class_4588;Ljava/util/List;Lnet/minecraft/class_1799;II)V
      official a Lgsn;a(Lfgr;Lfgv;Ljava/util/List;Lcxo;II)V
    • getModel

      public BakedModel getModel(ItemStack stack, @Nullable @Nullable World world, @Nullable @Nullable LivingEntity entity, int seed)
      Mappings:
      Namespace Name Mixin selector
      named getModel Lnet/minecraft/client/render/item/ItemRenderer;getModel(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/entity/LivingEntity;I)Lnet/minecraft/client/render/model/BakedModel;
      intermediary method_4019 Lnet/minecraft/class_918;method_4019(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;Lnet/minecraft/class_1309;I)Lnet/minecraft/class_1087;
      official a Lgsn;a(Lcxo;Ldhh;Lbwf;I)Lhdm;
    • renderItem

      public void renderItem(ItemStack stack, ModelTransformationMode transformationMode, int light, int overlay, MatrixStack matrices, VertexConsumerProvider vertexConsumers, @Nullable @Nullable World world, int seed)
      Mappings:
      Namespace Name Mixin selector
      named renderItem Lnet/minecraft/client/render/item/ItemRenderer;renderItem(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ModelTransformationMode;IILnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;Lnet/minecraft/world/World;I)V
      intermediary method_23178 Lnet/minecraft/class_918;method_23178(Lnet/minecraft/class_1799;Lnet/minecraft/class_811;IILnet/minecraft/class_4587;Lnet/minecraft/class_4597;Lnet/minecraft/class_1937;I)V
      official a Lgsn;a(Lcxo;Lcxm;IILfgr;Lglk;Ldhh;I)V
    • renderItem

      public void renderItem(@Nullable @Nullable LivingEntity entity, ItemStack item, ModelTransformationMode transformationMode, boolean leftHanded, MatrixStack matrices, VertexConsumerProvider vertexConsumers, @Nullable @Nullable World world, int light, int overlay, int seed)
      Mappings:
      Namespace Name Mixin selector
      named renderItem Lnet/minecraft/client/render/item/ItemRenderer;renderItem(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ModelTransformationMode;ZLnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;Lnet/minecraft/world/World;III)V
      intermediary method_23177 Lnet/minecraft/class_918;method_23177(Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;Lnet/minecraft/class_811;ZLnet/minecraft/class_4587;Lnet/minecraft/class_4597;Lnet/minecraft/class_1937;III)V
      official a Lgsn;a(Lbwf;Lcxo;Lcxm;ZLfgr;Lglk;Ldhh;III)V
    • reload

      public void reload(ResourceManager manager)
      Performs the reload in the apply executor, or the game engine.
      Specified by:
      reload in interface SynchronousResourceReloader
      Parameters:
      manager - the resource manager
      Mappings:
      Namespace Name Mixin selector
      named reload Lnet/minecraft/resource/SynchronousResourceReloader;reload(Lnet/minecraft/resource/ResourceManager;)V
      intermediary method_14491 Lnet/minecraft/class_4013;method_14491(Lnet/minecraft/class_3300;)V
      official a Lavw;a(Lavv;)V
    • getModel

      @Nullable public @Nullable BakedModel getModel(ItemStack stack, LivingEntity entity, ModelTransformationMode transformationMode)
      Mappings:
      Namespace Name Mixin selector
      named getModel Lnet/minecraft/client/render/item/ItemRenderer;getModel(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ModelTransformationMode;)Lnet/minecraft/client/render/model/BakedModel;
      intermediary method_62475 Lnet/minecraft/class_918;method_62475(Lnet/minecraft/class_1799;Lnet/minecraft/class_1309;Lnet/minecraft/class_811;)Lnet/minecraft/class_1087;
      official a Lgsn;a(Lcxo;Lbwf;Lcxm;)Lhdm;
    • getModelOrOverride

      private BakedModel getModelOrOverride(BakedModel model, ItemStack stack, @Nullable @Nullable World world, @Nullable @Nullable LivingEntity entity, int seed)
      Mappings:
      Namespace Name Mixin selector
      named getModelOrOverride Lnet/minecraft/client/render/item/ItemRenderer;getModelOrOverride(Lnet/minecraft/client/render/model/BakedModel;Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/entity/LivingEntity;I)Lnet/minecraft/client/render/model/BakedModel;
      intermediary method_64256 Lnet/minecraft/class_918;method_64256(Lnet/minecraft/class_1087;Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;Lnet/minecraft/class_1309;I)Lnet/minecraft/class_1087;
      official a Lgsn;a(Lhdm;Lcxo;Ldhh;Lbwf;I)Lhdm;