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
official eul
intermediary net/minecraft/class_918
named net/minecraft/client/render/item/ItemRenderer
  • Field Details

    • ENCHANTED_ITEM_GLINT

      public static final Identifier ENCHANTED_ITEM_GLINT
      Mappings:
      Namespace Name Mixin selector
      official a Leul;a:Lyb;
      intermediary field_21010 Lnet/minecraft/class_918;field_21010:Lnet/minecraft/class_2960;
      named ENCHANTED_ITEM_GLINT Lnet/minecraft/client/render/item/ItemRenderer;ENCHANTED_ITEM_GLINT:Lnet/minecraft/util/Identifier;
    • WITHOUT_MODELS

      private static final Set<Item> WITHOUT_MODELS
      Mappings:
      Namespace Name Mixin selector
      official f Leul;f:Ljava/util/Set;
      intermediary field_4728 Lnet/minecraft/class_918;field_4728:Ljava/util/Set;
      named WITHOUT_MODELS Lnet/minecraft/client/render/item/ItemRenderer;WITHOUT_MODELS:Ljava/util/Set;
    • field_32937

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

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

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

      public static final float COMPASS_WITH_GLINT_GUI_MODEL_MULTIPLIER
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Leul;c:F
      intermediary field_32935 Lnet/minecraft/class_918;field_32935:F
      named COMPASS_WITH_GLINT_GUI_MODEL_MULTIPLIER Lnet/minecraft/client/render/item/ItemRenderer;COMPASS_WITH_GLINT_GUI_MODEL_MULTIPLIER: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
      official d Leul;d:F
      intermediary field_32936 Lnet/minecraft/class_918;field_32936:F
      named COMPASS_WITH_GLINT_FIRST_PERSON_MODEL_MULTIPLIER Lnet/minecraft/client/render/item/ItemRenderer;COMPASS_WITH_GLINT_FIRST_PERSON_MODEL_MULTIPLIER:F
    • zOffset

      public float zOffset
      Mappings:
      Namespace Name Mixin selector
      official e Leul;e:F
      intermediary field_4730 Lnet/minecraft/class_918;field_4730:F
      named zOffset Lnet/minecraft/client/render/item/ItemRenderer;zOffset:F
    • models

      private final ItemModels models
      Mappings:
      Namespace Name Mixin selector
      official i Leul;i:Leov;
      intermediary field_4732 Lnet/minecraft/class_918;field_4732:Lnet/minecraft/class_763;
      named models Lnet/minecraft/client/render/item/ItemRenderer;models:Lnet/minecraft/client/render/item/ItemModels;
    • textureManager

      private final TextureManager textureManager
      Mappings:
      Namespace Name Mixin selector
      official j Leul;j:Lezd;
      intermediary field_4729 Lnet/minecraft/class_918;field_4729:Lnet/minecraft/class_1060;
      named textureManager Lnet/minecraft/client/render/item/ItemRenderer;textureManager:Lnet/minecraft/client/texture/TextureManager;
    • colors

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

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

    • ItemRenderer

      public ItemRenderer(TextureManager manager, BakedModelManager bakery, ItemColors colors, BuiltinModelItemRenderer builtinModelItemRenderer)
      Mappings:
      Namespace Name Mixin selector
      official <init> Leul;<init>(Lezd;Lfat;Ldxw;Leok;)V
      intermediary <init> Lnet/minecraft/class_918;<init>(Lnet/minecraft/class_1060;Lnet/minecraft/class_1092;Lnet/minecraft/class_325;Lnet/minecraft/class_756;)V
      named <init> Lnet/minecraft/client/render/item/ItemRenderer;<init>(Lnet/minecraft/client/texture/TextureManager;Lnet/minecraft/client/render/model/BakedModelManager;Lnet/minecraft/client/color/item/ItemColors;Lnet/minecraft/client/render/item/BuiltinModelItemRenderer;)V
  • Method Details

    • getModels

      public ItemModels getModels()
      Mappings:
      Namespace Name Mixin selector
      official a Leul;a()Leov;
      intermediary method_4012 Lnet/minecraft/class_918;method_4012()Lnet/minecraft/class_763;
      named getModels Lnet/minecraft/client/render/item/ItemRenderer;getModels()Lnet/minecraft/client/render/item/ItemModels;
    • renderBakedItemModel

      private void renderBakedItemModel(BakedModel model, ItemStack stack, int light, int overlay, MatrixStack matrices, VertexConsumer vertices)
      Mappings:
      Namespace Name Mixin selector
      official a Leul;a(Lfao;Lbtx;IILdrw;Ldsa;)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
      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
    • renderItem

      public void renderItem(ItemStack stack, ModelTransformation.Mode renderMode, boolean leftHanded, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, int overlay, BakedModel model)
      Mappings:
      Namespace Name Mixin selector
      official a Leul;a(Lbtx;Leqe$b;ZLdrw;Leoy;IILfao;)V
      intermediary method_23179 Lnet/minecraft/class_918;method_23179(Lnet/minecraft/class_1799;Lnet/minecraft/class_809$class_811;ZLnet/minecraft/class_4587;Lnet/minecraft/class_4597;IILnet/minecraft/class_1087;)V
      named renderItem Lnet/minecraft/client/render/item/ItemRenderer;renderItem(Lnet/minecraft/item/ItemStack;Lnet/minecraft/client/render/model/json/ModelTransformation$Mode;ZLnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;IILnet/minecraft/client/render/model/BakedModel;)V
    • getArmorGlintConsumer

      public static VertexConsumer getArmorGlintConsumer(VertexConsumerProvider provider, RenderLayer layer, boolean solid, boolean glint)
      Mappings:
      Namespace Name Mixin selector
      official a Leul;a(Leoy;Lepg;ZZ)Ldsa;
      intermediary method_27952 Lnet/minecraft/class_918;method_27952(Lnet/minecraft/class_4597;Lnet/minecraft/class_1921;ZZ)Lnet/minecraft/class_4588;
      named getArmorGlintConsumer Lnet/minecraft/client/render/item/ItemRenderer;getArmorGlintConsumer(Lnet/minecraft/client/render/VertexConsumerProvider;Lnet/minecraft/client/render/RenderLayer;ZZ)Lnet/minecraft/client/render/VertexConsumer;
    • getCompassGlintConsumer

      public static VertexConsumer getCompassGlintConsumer(VertexConsumerProvider provider, RenderLayer layer, MatrixStack.Entry entry)
      Mappings:
      Namespace Name Mixin selector
      official a Leul;a(Leoy;Lepg;Ldrw$a;)Ldsa;
      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;
      named getCompassGlintConsumer Lnet/minecraft/client/render/item/ItemRenderer;getCompassGlintConsumer(Lnet/minecraft/client/render/VertexConsumerProvider;Lnet/minecraft/client/render/RenderLayer;Lnet/minecraft/client/util/math/MatrixStack$Entry;)Lnet/minecraft/client/render/VertexConsumer;
    • getDirectCompassGlintConsumer

      public static VertexConsumer getDirectCompassGlintConsumer(VertexConsumerProvider provider, RenderLayer layer, MatrixStack.Entry entry)
      Mappings:
      Namespace Name Mixin selector
      official b Leul;b(Leoy;Lepg;Ldrw$a;)Ldsa;
      intermediary method_30115 Lnet/minecraft/class_918;method_30115(Lnet/minecraft/class_4597;Lnet/minecraft/class_1921;Lnet/minecraft/class_4587$class_4665;)Lnet/minecraft/class_4588;
      named getDirectCompassGlintConsumer Lnet/minecraft/client/render/item/ItemRenderer;getDirectCompassGlintConsumer(Lnet/minecraft/client/render/VertexConsumerProvider;Lnet/minecraft/client/render/RenderLayer;Lnet/minecraft/client/util/math/MatrixStack$Entry;)Lnet/minecraft/client/render/VertexConsumer;
    • getItemGlintConsumer

      public static VertexConsumer getItemGlintConsumer(VertexConsumerProvider vertexConsumers, RenderLayer layer, boolean solid, boolean glint)
      Mappings:
      Namespace Name Mixin selector
      official b Leul;b(Leoy;Lepg;ZZ)Ldsa;
      intermediary method_23181 Lnet/minecraft/class_918;method_23181(Lnet/minecraft/class_4597;Lnet/minecraft/class_1921;ZZ)Lnet/minecraft/class_4588;
      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;
    • getDirectItemGlintConsumer

      public static VertexConsumer getDirectItemGlintConsumer(VertexConsumerProvider provider, RenderLayer layer, boolean solid, boolean glint)
      Mappings:
      Namespace Name Mixin selector
      official c Leul;c(Leoy;Lepg;ZZ)Ldsa;
      intermediary method_29711 Lnet/minecraft/class_918;method_29711(Lnet/minecraft/class_4597;Lnet/minecraft/class_1921;ZZ)Lnet/minecraft/class_4588;
      named getDirectItemGlintConsumer Lnet/minecraft/client/render/item/ItemRenderer;getDirectItemGlintConsumer(Lnet/minecraft/client/render/VertexConsumerProvider;Lnet/minecraft/client/render/RenderLayer;ZZ)Lnet/minecraft/client/render/VertexConsumer;
    • renderBakedItemQuads

      private void renderBakedItemQuads(MatrixStack matrices, VertexConsumer vertices, List<BakedQuad> quads, ItemStack stack, int light, int overlay)
      Mappings:
      Namespace Name Mixin selector
      official a Leul;a(Ldrw;Ldsa;Ljava/util/List;Lbtx;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
      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
    • getModel

      public BakedModel getModel(ItemStack stack, @Nullable @Nullable World world, @Nullable @Nullable LivingEntity entity, int seed)
      Mappings:
      Namespace Name Mixin selector
      official a Leul;a(Lbtx;Lbzw;Laxa;I)Lfao;
      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;
      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;
    • renderItem

      public void renderItem(ItemStack stack, ModelTransformation.Mode transformationType, int light, int overlay, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int seed)
      Mappings:
      Namespace Name Mixin selector
      official a Leul;a(Lbtx;Leqe$b;IILdrw;Leoy;I)V
      intermediary method_23178 Lnet/minecraft/class_918;method_23178(Lnet/minecraft/class_1799;Lnet/minecraft/class_809$class_811;IILnet/minecraft/class_4587;Lnet/minecraft/class_4597;I)V
      named renderItem Lnet/minecraft/client/render/item/ItemRenderer;renderItem(Lnet/minecraft/item/ItemStack;Lnet/minecraft/client/render/model/json/ModelTransformation$Mode;IILnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;I)V
    • renderItem

      public void renderItem(@Nullable @Nullable LivingEntity entity, ItemStack item, ModelTransformation.Mode renderMode, boolean leftHanded, MatrixStack matrices, VertexConsumerProvider vertexConsumers, @Nullable @Nullable World world, int light, int overlay, int seed)
      Mappings:
      Namespace Name Mixin selector
      official a Leul;a(Laxa;Lbtx;Leqe$b;ZLdrw;Leoy;Lbzw;III)V
      intermediary method_23177 Lnet/minecraft/class_918;method_23177(Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;Lnet/minecraft/class_809$class_811;ZLnet/minecraft/class_4587;Lnet/minecraft/class_4597;Lnet/minecraft/class_1937;III)V
      named renderItem Lnet/minecraft/client/render/item/ItemRenderer;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;Lnet/minecraft/world/World;III)V
    • renderGuiItemIcon

      public void renderGuiItemIcon(ItemStack stack, int x, int y)
      Mappings:
      Namespace Name Mixin selector
      official a Leul;a(Lbtx;II)V
      intermediary method_4010 Lnet/minecraft/class_918;method_4010(Lnet/minecraft/class_1799;II)V
      named renderGuiItemIcon Lnet/minecraft/client/render/item/ItemRenderer;renderGuiItemIcon(Lnet/minecraft/item/ItemStack;II)V
    • renderGuiItemModel

      protected void renderGuiItemModel(ItemStack stack, int x, int y, BakedModel model)
      Mappings:
      Namespace Name Mixin selector
      official a Leul;a(Lbtx;IILfao;)V
      intermediary method_4021 Lnet/minecraft/class_918;method_4021(Lnet/minecraft/class_1799;IILnet/minecraft/class_1087;)V
      named renderGuiItemModel Lnet/minecraft/client/render/item/ItemRenderer;renderGuiItemModel(Lnet/minecraft/item/ItemStack;IILnet/minecraft/client/render/model/BakedModel;)V
    • renderInGuiWithOverrides

      public void renderInGuiWithOverrides(ItemStack stack, int x, int y)
      Renders an item in a GUI with the player as the attached entity for calculating model overrides.
      Mappings:
      Namespace Name Mixin selector
      official b Leul;b(Lbtx;II)V
      intermediary method_4023 Lnet/minecraft/class_918;method_4023(Lnet/minecraft/class_1799;II)V
      named renderInGuiWithOverrides Lnet/minecraft/client/render/item/ItemRenderer;renderInGuiWithOverrides(Lnet/minecraft/item/ItemStack;II)V
    • renderInGuiWithOverrides

      public void renderInGuiWithOverrides(ItemStack stack, int x, int y, int seed)
      Mappings:
      Namespace Name Mixin selector
      official a Leul;a(Lbtx;III)V
      intermediary method_32797 Lnet/minecraft/class_918;method_32797(Lnet/minecraft/class_1799;III)V
      named renderInGuiWithOverrides Lnet/minecraft/client/render/item/ItemRenderer;renderInGuiWithOverrides(Lnet/minecraft/item/ItemStack;III)V
    • renderInGuiWithOverrides

      public void renderInGuiWithOverrides(ItemStack stack, int x, int y, int seed, int depth)
      Mappings:
      Namespace Name Mixin selector
      official a Leul;a(Lbtx;IIII)V
      intermediary method_36542 Lnet/minecraft/class_918;method_36542(Lnet/minecraft/class_1799;IIII)V
      named renderInGuiWithOverrides Lnet/minecraft/client/render/item/ItemRenderer;renderInGuiWithOverrides(Lnet/minecraft/item/ItemStack;IIII)V
    • renderInGui

      public void renderInGui(ItemStack stack, int x, int y)
      Renders an item in a GUI without an attached entity.
      Mappings:
      Namespace Name Mixin selector
      official c Leul;c(Lbtx;II)V
      intermediary method_27953 Lnet/minecraft/class_918;method_27953(Lnet/minecraft/class_1799;II)V
      named renderInGui Lnet/minecraft/client/render/item/ItemRenderer;renderInGui(Lnet/minecraft/item/ItemStack;II)V
    • renderInGuiWithOverrides

      public void renderInGuiWithOverrides(LivingEntity entity, ItemStack stack, int x, int y, int seed)
      Renders an item in a GUI with an attached entity.

      The entity is used to calculate model overrides for the item.

      Mappings:
      Namespace Name Mixin selector
      official a Leul;a(Laxa;Lbtx;III)V
      intermediary method_27951 Lnet/minecraft/class_918;method_27951(Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;III)V
      named renderInGuiWithOverrides Lnet/minecraft/client/render/item/ItemRenderer;renderInGuiWithOverrides(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;III)V
    • innerRenderInGui

      private void innerRenderInGui(@Nullable @Nullable LivingEntity entity, ItemStack stack, int x, int y, int seed)
      Mappings:
      Namespace Name Mixin selector
      official b Leul;b(Laxa;Lbtx;III)V
      intermediary method_36543 Lnet/minecraft/class_918;method_36543(Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;III)V
      named innerRenderInGui Lnet/minecraft/client/render/item/ItemRenderer;innerRenderInGui(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;III)V
    • innerRenderInGui

      private void innerRenderInGui(@Nullable @Nullable LivingEntity entity, ItemStack itemStack, int x, int y, int seed, int depth)
      Mappings:
      Namespace Name Mixin selector
      official a Leul;a(Laxa;Lbtx;IIII)V
      intermediary method_4026 Lnet/minecraft/class_918;method_4026(Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;IIII)V
      named innerRenderInGui Lnet/minecraft/client/render/item/ItemRenderer;innerRenderInGui(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;IIII)V
    • renderGuiItemOverlay

      public void renderGuiItemOverlay(TextRenderer renderer, ItemStack stack, int x, int y)
      Renders the overlay for items in GUIs, including the damage bar and the item count.
      Mappings:
      Namespace Name Mixin selector
      official a Leul;a(Ldxy;Lbtx;II)V
      intermediary method_4025 Lnet/minecraft/class_918;method_4025(Lnet/minecraft/class_327;Lnet/minecraft/class_1799;II)V
      named renderGuiItemOverlay Lnet/minecraft/client/render/item/ItemRenderer;renderGuiItemOverlay(Lnet/minecraft/client/font/TextRenderer;Lnet/minecraft/item/ItemStack;II)V
    • renderGuiItemOverlay

      public void renderGuiItemOverlay(TextRenderer renderer, ItemStack stack, int x, int y, @Nullable @Nullable String countLabel)
      Renders the overlay for items in GUIs, including the damage bar and the item count.
      Parameters:
      countLabel - a label for the stack; if null, the stack count is drawn instead
      Mappings:
      Namespace Name Mixin selector
      official a Leul;a(Ldxy;Lbtx;IILjava/lang/String;)V
      intermediary method_4022 Lnet/minecraft/class_918;method_4022(Lnet/minecraft/class_327;Lnet/minecraft/class_1799;IILjava/lang/String;)V
      named renderGuiItemOverlay Lnet/minecraft/client/render/item/ItemRenderer;renderGuiItemOverlay(Lnet/minecraft/client/font/TextRenderer;Lnet/minecraft/item/ItemStack;IILjava/lang/String;)V
    • renderGuiQuad

      private void renderGuiQuad(BufferBuilder buffer, int x, int y, int width, int height, int red, int green, int blue, int alpha)
      Mappings:
      Namespace Name Mixin selector
      official a Leul;a(Ldrr;IIIIIIII)V
      intermediary method_4004 Lnet/minecraft/class_918;method_4004(Lnet/minecraft/class_287;IIIIIIII)V
      named renderGuiQuad Lnet/minecraft/client/render/item/ItemRenderer;renderGuiQuad(Lnet/minecraft/client/render/BufferBuilder;IIIIIIII)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
      official a Laff;a(Lafe;)V
      intermediary method_14491 Lnet/minecraft/class_4013;method_14491(Lnet/minecraft/class_3300;)V
      named reload Lnet/minecraft/resource/SynchronousResourceReloader;reload(Lnet/minecraft/resource/ResourceManager;)V