Class ItemRenderer
java.lang.Object
net.minecraft.client.renderer.entity.ItemRenderer
- All Implemented Interfaces:
- PreparableReloadListener,- ResourceManagerReloadListener
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListenerPreparableReloadListener.PreparationBarrier
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final BlockEntityWithoutLevelRendererstatic final floatstatic final floatstatic final floatstatic final ResourceLocationstatic final ResourceLocationstatic final intstatic final intstatic final intprivate final ItemColorsprivate final ItemModelShaperprivate final Minecraftstatic final ModelResourceLocationprivate static final ModelResourceLocationprivate final TextureManagerstatic final ModelResourceLocationprivate static final ModelResourceLocation
- 
Constructor SummaryConstructorsConstructorDescriptionItemRenderer(Minecraft p_266926_, TextureManager p_266774_, ModelManager p_266850_, ItemColors p_267016_, BlockEntityWithoutLevelRenderer p_267049_) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic VertexConsumergetArmorFoilBuffer(MultiBufferSource p_115185_, RenderType p_115186_, boolean p_115187_, boolean p_115188_) static VertexConsumergetCompassFoilBuffer(MultiBufferSource p_115181_, RenderType p_115182_, PoseStack.Pose p_115183_) static VertexConsumergetCompassFoilBufferDirect(MultiBufferSource p_115208_, RenderType p_115209_, PoseStack.Pose p_115210_) static VertexConsumergetFoilBuffer(MultiBufferSource p_115212_, RenderType p_115213_, boolean p_115214_, boolean p_115215_) static VertexConsumergetFoilBufferDirect(MultiBufferSource p_115223_, RenderType p_115224_, boolean p_115225_, boolean p_115226_) getModel(ItemStack p_174265_, Level p_174266_, LivingEntity p_174267_, int p_174268_) private static booleanhasAnimatedTexture(ItemStack p_286353_) voidonResourceManagerReload(ResourceManager p_115105_) voidrender(ItemStack p_115144_, ItemDisplayContext p_270188_, boolean p_115146_, PoseStack p_115147_, MultiBufferSource p_115148_, int p_115149_, int p_115150_, BakedModel p_115151_) voidrenderModelLists(BakedModel p_115190_, ItemStack p_115191_, int p_115192_, int p_115193_, PoseStack p_115194_, VertexConsumer p_115195_) voidrenderQuadList(PoseStack p_115163_, VertexConsumer p_115164_, List<BakedQuad> p_115165_, ItemStack p_115166_, int p_115167_, int p_115168_) voidrenderStatic(LivingEntity p_270101_, ItemStack p_270637_, ItemDisplayContext p_270437_, boolean p_270434_, PoseStack p_270230_, MultiBufferSource p_270411_, Level p_270641_, int p_270595_, int p_270927_, int p_270845_) voidrenderStatic(ItemStack p_270761_, ItemDisplayContext p_270648_, int p_270410_, int p_270894_, PoseStack p_270430_, MultiBufferSource p_270457_, Level p_270149_, int p_270509_) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.server.packs.resources.PreparableReloadListenergetNameMethods inherited from interface net.minecraft.server.packs.resources.ResourceManagerReloadListenerreload
- 
Field Details- 
ENCHANTED_GLINT_ENTITY
- 
ENCHANTED_GLINT_ITEM
- 
IGNORED
- 
GUI_SLOT_CENTER_Xpublic static final int GUI_SLOT_CENTER_X- See Also:
 
- 
GUI_SLOT_CENTER_Ypublic static final int GUI_SLOT_CENTER_Y- See Also:
 
- 
ITEM_COUNT_BLIT_OFFSETpublic static final int ITEM_COUNT_BLIT_OFFSET- See Also:
 
- 
COMPASS_FOIL_UI_SCALEpublic static final float COMPASS_FOIL_UI_SCALE- See Also:
 
- 
COMPASS_FOIL_FIRST_PERSON_SCALEpublic static final float COMPASS_FOIL_FIRST_PERSON_SCALE- See Also:
 
- 
COMPASS_FOIL_TEXTURE_SCALEpublic static final float COMPASS_FOIL_TEXTURE_SCALE- See Also:
 
- 
TRIDENT_MODEL
- 
TRIDENT_IN_HAND_MODEL
- 
SPYGLASS_MODEL
- 
SPYGLASS_IN_HAND_MODEL
- 
minecraft
- 
itemModelShaper
- 
textureManager
- 
itemColors
- 
blockEntityRenderer
 
- 
- 
Constructor Details- 
ItemRendererpublic ItemRenderer(Minecraft p_266926_, TextureManager p_266774_, ModelManager p_266850_, ItemColors p_267016_, BlockEntityWithoutLevelRenderer p_267049_) 
 
- 
- 
Method Details- 
getItemModelShaper
- 
renderModelListspublic void renderModelLists(BakedModel p_115190_, ItemStack p_115191_, int p_115192_, int p_115193_, PoseStack p_115194_, VertexConsumer p_115195_) 
- 
renderpublic void render(ItemStack p_115144_, ItemDisplayContext p_270188_, boolean p_115146_, PoseStack p_115147_, MultiBufferSource p_115148_, int p_115149_, int p_115150_, BakedModel p_115151_) 
- 
hasAnimatedTexture
- 
getArmorFoilBufferpublic static VertexConsumer getArmorFoilBuffer(MultiBufferSource p_115185_, RenderType p_115186_, boolean p_115187_, boolean p_115188_) 
- 
getCompassFoilBufferpublic static VertexConsumer getCompassFoilBuffer(MultiBufferSource p_115181_, RenderType p_115182_, PoseStack.Pose p_115183_) 
- 
getCompassFoilBufferDirectpublic static VertexConsumer getCompassFoilBufferDirect(MultiBufferSource p_115208_, RenderType p_115209_, PoseStack.Pose p_115210_) 
- 
getFoilBufferpublic static VertexConsumer getFoilBuffer(MultiBufferSource p_115212_, RenderType p_115213_, boolean p_115214_, boolean p_115215_) 
- 
getFoilBufferDirectpublic static VertexConsumer getFoilBufferDirect(MultiBufferSource p_115223_, RenderType p_115224_, boolean p_115225_, boolean p_115226_) 
- 
renderQuadListpublic void renderQuadList(PoseStack p_115163_, VertexConsumer p_115164_, List<BakedQuad> p_115165_, ItemStack p_115166_, int p_115167_, int p_115168_) 
- 
getModelpublic BakedModel getModel(ItemStack p_174265_, @Nullable Level p_174266_, @Nullable LivingEntity p_174267_, int p_174268_) 
- 
renderStaticpublic void renderStatic(ItemStack p_270761_, ItemDisplayContext p_270648_, int p_270410_, int p_270894_, PoseStack p_270430_, MultiBufferSource p_270457_, @Nullable Level p_270149_, int p_270509_) 
- 
renderStaticpublic void renderStatic(@Nullable LivingEntity p_270101_, ItemStack p_270637_, ItemDisplayContext p_270437_, boolean p_270434_, PoseStack p_270230_, MultiBufferSource p_270411_, @Nullable Level p_270641_, int p_270595_, int p_270927_, int p_270845_) 
- 
onResourceManagerReload- Specified by:
- onResourceManagerReloadin interface- ResourceManagerReloadListener
 
- 
getBlockEntityRenderer
 
-