Package net.minecraft.client.render.item
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 fplintermediary net/minecraft/class_918named net/minecraft/client/render/item/ItemRenderer
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.resource.ResourceReloader
ResourceReloader.Synchronizer -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BuiltinModelItemRendererprivate final MinecraftClientprivate final ItemColorsstatic final floatstatic final floatstatic final Identifierstatic final intstatic final intstatic final intstatic final floatstatic final Identifierprivate final ItemModelsprivate static final ModelIdentifierstatic final ModelIdentifierprivate final TextureManagerprivate static final ModelIdentifierstatic final ModelIdentifier -
Constructor Summary
ConstructorsConstructorDescriptionItemRenderer(MinecraftClient client, TextureManager manager, BakedModelManager bakery, ItemColors colors, BuiltinModelItemRenderer builtinModelItemRenderer) -
Method Summary
Modifier and TypeMethodDescriptionstatic VertexConsumergetArmorGlintConsumer(VertexConsumerProvider provider, RenderLayer layer, boolean solid, boolean glint) static VertexConsumergetDirectDynamicDisplayGlintConsumer(VertexConsumerProvider provider, RenderLayer layer, MatrixStack.Entry entry) static VertexConsumergetDirectItemGlintConsumer(VertexConsumerProvider provider, RenderLayer layer, boolean solid, boolean glint) static VertexConsumergetDynamicDisplayGlintConsumer(VertexConsumerProvider provider, RenderLayer layer, MatrixStack.Entry entry) static VertexConsumergetItemGlintConsumer(VertexConsumerProvider vertexConsumers, RenderLayer layer, boolean solid, boolean glint) voidreload(ResourceManager manager) Performs the reload in the apply executor, or the game engine.private voidrenderBakedItemModel(BakedModel model, ItemStack stack, int light, int overlay, MatrixStack matrices, VertexConsumer vertices) private voidrenderBakedItemQuads(MatrixStack matrices, VertexConsumer vertices, List<BakedQuad> quads, ItemStack stack, int light, int overlay) voidrenderItem(@Nullable LivingEntity entity, ItemStack item, ModelTransformationMode renderMode, boolean leftHanded, MatrixStack matrices, VertexConsumerProvider vertexConsumers, @Nullable World world, int light, int overlay, int seed) voidrenderItem(ItemStack stack, ModelTransformationMode renderMode, boolean leftHanded, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, int overlay, BakedModel model) voidrenderItem(ItemStack stack, ModelTransformationMode transformationType, int light, int overlay, MatrixStack matrices, VertexConsumerProvider vertexConsumers, @Nullable World world, int seed) private static booleanusesDynamicDisplay(ItemStack stack) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.resource.ResourceReloader
getNameMethods inherited from interface net.minecraft.resource.SynchronousResourceReloader
reload
-
Field Details
-
ENTITY_ENCHANTMENT_GLINT
- Mappings:
Namespace Name Mixin selector official aLfpl;a:Lacq;intermediary field_43086Lnet/minecraft/class_918;field_43086:Lnet/minecraft/class_2960;named ENTITY_ENCHANTMENT_GLINTLnet/minecraft/client/render/item/ItemRenderer;ENTITY_ENCHANTMENT_GLINT:Lnet/minecraft/util/Identifier;
-
ITEM_ENCHANTMENT_GLINT
- Mappings:
Namespace Name Mixin selector official bLfpl;b:Lacq;intermediary field_43087Lnet/minecraft/class_918;field_43087:Lnet/minecraft/class_2960;named ITEM_ENCHANTMENT_GLINTLnet/minecraft/client/render/item/ItemRenderer;ITEM_ENCHANTMENT_GLINT:Lnet/minecraft/util/Identifier;
-
WITHOUT_MODELS
- Mappings:
Namespace Name Mixin selector official kLfpl;k:Ljava/util/Set;intermediary field_4728Lnet/minecraft/class_918;field_4728:Ljava/util/Set;named WITHOUT_MODELSLnet/minecraft/client/render/item/ItemRenderer;WITHOUT_MODELS:Ljava/util/Set;
-
field_32937
public static final int field_32937- See Also:
- Mappings:
Namespace Name Mixin selector official cLfpl;c:Iintermediary field_32937Lnet/minecraft/class_918;field_32937:Inamed field_32937Lnet/minecraft/client/render/item/ItemRenderer;field_32937:I
-
field_32938
public static final int field_32938- See Also:
- Mappings:
Namespace Name Mixin selector official dLfpl;d:Iintermediary field_32938Lnet/minecraft/class_918;field_32938:Inamed field_32938Lnet/minecraft/client/render/item/ItemRenderer;field_32938:I
-
field_32934
public static final int field_32934- See Also:
- Mappings:
Namespace Name Mixin selector official eLfpl;e:Iintermediary field_32934Lnet/minecraft/class_918;field_32934:Inamed field_32934Lnet/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 fLfpl;f:Fintermediary field_32935Lnet/minecraft/class_918;field_32935:Fnamed COMPASS_WITH_GLINT_GUI_MODEL_MULTIPLIERLnet/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 gLfpl;g:Fintermediary field_32936Lnet/minecraft/class_918;field_32936:Fnamed COMPASS_WITH_GLINT_FIRST_PERSON_MODEL_MULTIPLIERLnet/minecraft/client/render/item/ItemRenderer;COMPASS_WITH_GLINT_FIRST_PERSON_MODEL_MULTIPLIER:F
-
field_41120
public static final float field_41120- See Also:
- Mappings:
Namespace Name Mixin selector official hLfpl;h:Fintermediary field_41120Lnet/minecraft/class_918;field_41120:Fnamed field_41120Lnet/minecraft/client/render/item/ItemRenderer;field_41120:F
-
TRIDENT
- Mappings:
Namespace Name Mixin selector official lLfpl;l:Lfwn;intermediary field_40532Lnet/minecraft/class_918;field_40532:Lnet/minecraft/class_1091;named TRIDENTLnet/minecraft/client/render/item/ItemRenderer;TRIDENT:Lnet/minecraft/client/util/ModelIdentifier;
-
TRIDENT_IN_HAND
- Mappings:
Namespace Name Mixin selector official iLfpl;i:Lfwn;intermediary field_40530Lnet/minecraft/class_918;field_40530:Lnet/minecraft/class_1091;named TRIDENT_IN_HANDLnet/minecraft/client/render/item/ItemRenderer;TRIDENT_IN_HAND:Lnet/minecraft/client/util/ModelIdentifier;
-
SPYGLASS
- Mappings:
Namespace Name Mixin selector official mLfpl;m:Lfwn;intermediary field_40533Lnet/minecraft/class_918;field_40533:Lnet/minecraft/class_1091;named SPYGLASSLnet/minecraft/client/render/item/ItemRenderer;SPYGLASS:Lnet/minecraft/client/util/ModelIdentifier;
-
SPYGLASS_IN_HAND
- Mappings:
Namespace Name Mixin selector official jLfpl;j:Lfwn;intermediary field_40531Lnet/minecraft/class_918;field_40531:Lnet/minecraft/class_1091;named SPYGLASS_IN_HANDLnet/minecraft/client/render/item/ItemRenderer;SPYGLASS_IN_HAND:Lnet/minecraft/client/util/ModelIdentifier;
-
client
- Mappings:
Namespace Name Mixin selector official nLfpl;n:Lenf;intermediary field_42073Lnet/minecraft/class_918;field_42073:Lnet/minecraft/class_310;named clientLnet/minecraft/client/render/item/ItemRenderer;client:Lnet/minecraft/client/MinecraftClient;
-
models
- Mappings:
Namespace Name Mixin selector official oLfpl;o:Lfjj;intermediary field_4732Lnet/minecraft/class_918;field_4732:Lnet/minecraft/class_763;named modelsLnet/minecraft/client/render/item/ItemRenderer;models:Lnet/minecraft/client/render/item/ItemModels;
-
textureManager
- Mappings:
Namespace Name Mixin selector official pLfpl;p:Lful;intermediary field_4729Lnet/minecraft/class_918;field_4729:Lnet/minecraft/class_1060;named textureManagerLnet/minecraft/client/render/item/ItemRenderer;textureManager:Lnet/minecraft/client/texture/TextureManager;
-
colors
- Mappings:
Namespace Name Mixin selector official qLfpl;q:Leok;intermediary field_4733Lnet/minecraft/class_918;field_4733:Lnet/minecraft/class_325;named colorsLnet/minecraft/client/render/item/ItemRenderer;colors:Lnet/minecraft/client/color/item/ItemColors;
-
builtinModelItemRenderer
- Mappings:
Namespace Name Mixin selector official rLfpl;r:Lfiy;intermediary field_27770Lnet/minecraft/class_918;field_27770:Lnet/minecraft/class_756;named builtinModelItemRendererLnet/minecraft/client/render/item/ItemRenderer;builtinModelItemRenderer:Lnet/minecraft/client/render/item/BuiltinModelItemRenderer;
-
-
Constructor Details
-
ItemRenderer
public ItemRenderer(MinecraftClient client, TextureManager manager, BakedModelManager bakery, ItemColors colors, BuiltinModelItemRenderer builtinModelItemRenderer) - Mappings:
Namespace Name Mixin selector official <init>Lfpl;<init>(Lenf;Lful;Lfwm;Leok;Lfiy;)Vintermediary <init>Lnet/minecraft/class_918;<init>(Lnet/minecraft/class_310;Lnet/minecraft/class_1060;Lnet/minecraft/class_1092;Lnet/minecraft/class_325;Lnet/minecraft/class_756;)Vnamed <init>Lnet/minecraft/client/render/item/ItemRenderer;<init>(Lnet/minecraft/client/MinecraftClient;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
- Mappings:
Namespace Name Mixin selector official aLfpl;a()Lfjj;intermediary method_4012Lnet/minecraft/class_918;method_4012()Lnet/minecraft/class_763;named getModelsLnet/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 aLfpl;a(Lfwg;Lcfx;IILeib;Leif;)Vintermediary method_23182Lnet/minecraft/class_918;method_23182(Lnet/minecraft/class_1087;Lnet/minecraft/class_1799;IILnet/minecraft/class_4587;Lnet/minecraft/class_4588;)Vnamed renderBakedItemModelLnet/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, ModelTransformationMode renderMode, boolean leftHanded, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, int overlay, BakedModel model) - Mappings:
Namespace Name Mixin selector official aLfpl;a(Lcfx;Lcfu;ZLeib;Lfjm;IILfwg;)Vintermediary method_23179Lnet/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;)Vnamed renderItemLnet/minecraft/client/render/item/ItemRenderer;renderItem(Lnet/minecraft/item/ItemStack;Lnet/minecraft/client/render/model/json/ModelTransformationMode;ZLnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;IILnet/minecraft/client/render/model/BakedModel;)V
-
usesDynamicDisplay
- Mappings:
Namespace Name Mixin selector official aLfpl;a(Lcfx;)Zintermediary method_51795Lnet/minecraft/class_918;method_51795(Lnet/minecraft/class_1799;)Znamed usesDynamicDisplayLnet/minecraft/client/render/item/ItemRenderer;usesDynamicDisplay(Lnet/minecraft/item/ItemStack;)Z
-
getArmorGlintConsumer
public static VertexConsumer getArmorGlintConsumer(VertexConsumerProvider provider, RenderLayer layer, boolean solid, boolean glint) - Mappings:
Namespace Name Mixin selector official aLfpl;a(Lfjm;Lfju;ZZ)Leif;intermediary method_27952Lnet/minecraft/class_918;method_27952(Lnet/minecraft/class_4597;Lnet/minecraft/class_1921;ZZ)Lnet/minecraft/class_4588;named getArmorGlintConsumerLnet/minecraft/client/render/item/ItemRenderer;getArmorGlintConsumer(Lnet/minecraft/client/render/VertexConsumerProvider;Lnet/minecraft/client/render/RenderLayer;ZZ)Lnet/minecraft/client/render/VertexConsumer;
-
getDynamicDisplayGlintConsumer
public static VertexConsumer getDynamicDisplayGlintConsumer(VertexConsumerProvider provider, RenderLayer layer, MatrixStack.Entry entry) - Mappings:
Namespace Name Mixin selector official aLfpl;a(Lfjm;Lfju;Leib$a;)Leif;intermediary method_30114Lnet/minecraft/class_918;method_30114(Lnet/minecraft/class_4597;Lnet/minecraft/class_1921;Lnet/minecraft/class_4587$class_4665;)Lnet/minecraft/class_4588;named getDynamicDisplayGlintConsumerLnet/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;
-
getDirectDynamicDisplayGlintConsumer
public static VertexConsumer getDirectDynamicDisplayGlintConsumer(VertexConsumerProvider provider, RenderLayer layer, MatrixStack.Entry entry) - Mappings:
Namespace Name Mixin selector official bLfpl;b(Lfjm;Lfju;Leib$a;)Leif;intermediary method_30115Lnet/minecraft/class_918;method_30115(Lnet/minecraft/class_4597;Lnet/minecraft/class_1921;Lnet/minecraft/class_4587$class_4665;)Lnet/minecraft/class_4588;named getDirectDynamicDisplayGlintConsumerLnet/minecraft/client/render/item/ItemRenderer;getDirectDynamicDisplayGlintConsumer(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 bLfpl;b(Lfjm;Lfju;ZZ)Leif;intermediary method_23181Lnet/minecraft/class_918;method_23181(Lnet/minecraft/class_4597;Lnet/minecraft/class_1921;ZZ)Lnet/minecraft/class_4588;named getItemGlintConsumerLnet/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 cLfpl;c(Lfjm;Lfju;ZZ)Leif;intermediary method_29711Lnet/minecraft/class_918;method_29711(Lnet/minecraft/class_4597;Lnet/minecraft/class_1921;ZZ)Lnet/minecraft/class_4588;named getDirectItemGlintConsumerLnet/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 aLfpl;a(Leib;Leif;Ljava/util/List;Lcfx;II)Vintermediary method_23180Lnet/minecraft/class_918;method_23180(Lnet/minecraft/class_4587;Lnet/minecraft/class_4588;Ljava/util/List;Lnet/minecraft/class_1799;II)Vnamed renderBakedItemQuadsLnet/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 aLfpl;a(Lcfx;Lcmk;Lbfx;I)Lfwg;intermediary method_4019Lnet/minecraft/class_918;method_4019(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;Lnet/minecraft/class_1309;I)Lnet/minecraft/class_1087;named getModelLnet/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, ModelTransformationMode transformationType, int light, int overlay, MatrixStack matrices, VertexConsumerProvider vertexConsumers, @Nullable @Nullable World world, int seed) - Mappings:
Namespace Name Mixin selector official aLfpl;a(Lcfx;Lcfu;IILeib;Lfjm;Lcmk;I)Vintermediary method_23178Lnet/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)Vnamed renderItemLnet/minecraft/client/render/item/ItemRenderer;renderItem(Lnet/minecraft/item/ItemStack;Lnet/minecraft/client/render/model/json/ModelTransformationMode;IILnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;Lnet/minecraft/world/World;I)V
-
renderItem
public void renderItem(@Nullable @Nullable LivingEntity entity, ItemStack item, ModelTransformationMode renderMode, boolean leftHanded, MatrixStack matrices, VertexConsumerProvider vertexConsumers, @Nullable @Nullable World world, int light, int overlay, int seed) - Mappings:
Namespace Name Mixin selector official aLfpl;a(Lbfx;Lcfx;Lcfu;ZLeib;Lfjm;Lcmk;III)Vintermediary method_23177Lnet/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)Vnamed renderItemLnet/minecraft/client/render/item/ItemRenderer;renderItem(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;Lnet/minecraft/client/render/model/json/ModelTransformationMode;ZLnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;Lnet/minecraft/world/World;III)V
-
reload
Performs the reload in the apply executor, or the game engine.- Specified by:
reloadin interfaceSynchronousResourceReloader- Parameters:
manager- the resource manager- Mappings:
Namespace Name Mixin selector official aLaky;a(Lakx;)Vintermediary method_14491Lnet/minecraft/class_4013;method_14491(Lnet/minecraft/class_3300;)Vnamed reloadLnet/minecraft/resource/SynchronousResourceReloader;reload(Lnet/minecraft/resource/ResourceManager;)V
-