Class ItemRenderer
java.lang.Object
net.minecraft.client.renderer.entity.ItemRenderer
- All Implemented Interfaces:
PreparableReloadListener
,ResourceManagerReloadListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
PreparableReloadListener.PreparationBarrier
-
Field Summary
Modifier and TypeFieldDescriptionprivate final BlockEntityWithoutLevelRenderer
static final float
static final float
static final float
static final ResourceLocation
static final ResourceLocation
private static final int
private static final int
static final int
private final ItemColors
private final ItemModelShaper
private final Minecraft
static final ModelResourceLocation
private static final ModelResourceLocation
private final TextureManager
static final ModelResourceLocation
private static final ModelResourceLocation
-
Constructor Summary
ConstructorDescriptionItemRenderer
(Minecraft p_266926_, TextureManager p_266774_, ModelManager p_266850_, ItemColors p_267016_, BlockEntityWithoutLevelRenderer p_267049_) -
Method Summary
Modifier and TypeMethodDescriptionstatic VertexConsumer
getArmorFoilBuffer
(MultiBufferSource p_115185_, RenderType p_115186_, boolean p_115187_, boolean p_115188_) static VertexConsumer
getCompassFoilBuffer
(MultiBufferSource p_115181_, RenderType p_115182_, PoseStack.Pose p_115183_) static VertexConsumer
getCompassFoilBufferDirect
(MultiBufferSource p_115208_, RenderType p_115209_, PoseStack.Pose p_115210_) static VertexConsumer
getFoilBuffer
(MultiBufferSource p_115212_, RenderType p_115213_, boolean p_115214_, boolean p_115215_) static VertexConsumer
getFoilBufferDirect
(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_) void
onResourceManagerReload
(ResourceManager p_115105_) 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_) void
renderAndDecorateFakeItem
(PoseStack p_275285_, ItemStack p_275595_, int p_275671_, int p_275526_) void
renderAndDecorateItem
(PoseStack p_275668_, LivingEntity p_275691_, ItemStack p_275472_, int p_275283_, int p_275239_, int p_275587_) void
renderAndDecorateItem
(PoseStack p_275197_, ItemStack p_275552_, int p_275198_, int p_275738_) void
renderAndDecorateItem
(PoseStack p_275539_, ItemStack p_275685_, int p_275360_, int p_275448_, int p_275456_) void
renderAndDecorateItem
(PoseStack p_275305_, ItemStack p_275612_, int p_275743_, int p_275591_, int p_275231_, int p_275345_) void
renderGuiItem
(PoseStack p_275410_, ItemStack p_275575_, int p_275265_, int p_275235_) protected void
renderGuiItem
(PoseStack p_275246_, ItemStack p_275195_, int p_275214_, int p_275658_, BakedModel p_275740_) void
renderGuiItemDecorations
(PoseStack p_275553_, Font p_275636_, ItemStack p_275514_, int p_275695_, int p_275460_) void
renderGuiItemDecorations
(PoseStack p_275269_, Font p_275652_, ItemStack p_275590_, int p_275202_, int p_275508_, String p_275302_) void
renderModelLists
(BakedModel p_115190_, ItemStack p_115191_, int p_115192_, int p_115193_, PoseStack p_115194_, VertexConsumer p_115195_) void
renderQuadList
(PoseStack p_115163_, VertexConsumer p_115164_, List<BakedQuad> p_115165_, ItemStack p_115166_, int p_115167_, int p_115168_) void
renderStatic
(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_) void
renderStatic
(ItemStack p_270761_, ItemDisplayContext p_270648_, int p_270410_, int p_270894_, PoseStack p_270430_, MultiBufferSource p_270457_, Level p_270149_, int p_270509_) private void
tryRenderGuiItem
(PoseStack p_275571_, LivingEntity p_275317_, Level p_275599_, ItemStack p_275500_, int p_275679_, int p_275377_, int p_275380_) private void
tryRenderGuiItem
(PoseStack p_275419_, LivingEntity p_275405_, Level p_275402_, ItemStack p_275431_, int p_275347_, int p_275504_, int p_275678_, int p_275555_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
getName
Methods inherited from interface net.minecraft.server.packs.resources.ResourceManagerReloadListener
reload
-
Field Details
-
ENCHANTED_GLINT_ENTITY
-
ENCHANTED_GLINT_ITEM
-
IGNORED
-
GUI_SLOT_CENTER_X
private static final int GUI_SLOT_CENTER_X- See Also:
-
GUI_SLOT_CENTER_Y
private static final int GUI_SLOT_CENTER_Y- See Also:
-
ITEM_COUNT_BLIT_OFFSET
public static final int ITEM_COUNT_BLIT_OFFSET- See Also:
-
COMPASS_FOIL_UI_SCALE
public static final float COMPASS_FOIL_UI_SCALE- See Also:
-
COMPASS_FOIL_FIRST_PERSON_SCALE
public static final float COMPASS_FOIL_FIRST_PERSON_SCALE- See Also:
-
COMPASS_FOIL_TEXTURE_SCALE
public 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
-
ItemRenderer
public ItemRenderer(Minecraft p_266926_, TextureManager p_266774_, ModelManager p_266850_, ItemColors p_267016_, BlockEntityWithoutLevelRenderer p_267049_)
-
-
Method Details
-
getItemModelShaper
-
renderModelLists
public void renderModelLists(BakedModel p_115190_, ItemStack p_115191_, int p_115192_, int p_115193_, PoseStack p_115194_, VertexConsumer p_115195_) -
render
public 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_) -
getArmorFoilBuffer
public static VertexConsumer getArmorFoilBuffer(MultiBufferSource p_115185_, RenderType p_115186_, boolean p_115187_, boolean p_115188_) -
getCompassFoilBuffer
public static VertexConsumer getCompassFoilBuffer(MultiBufferSource p_115181_, RenderType p_115182_, PoseStack.Pose p_115183_) -
getCompassFoilBufferDirect
public static VertexConsumer getCompassFoilBufferDirect(MultiBufferSource p_115208_, RenderType p_115209_, PoseStack.Pose p_115210_) -
getFoilBuffer
public static VertexConsumer getFoilBuffer(MultiBufferSource p_115212_, RenderType p_115213_, boolean p_115214_, boolean p_115215_) -
getFoilBufferDirect
public static VertexConsumer getFoilBufferDirect(MultiBufferSource p_115223_, RenderType p_115224_, boolean p_115225_, boolean p_115226_) -
renderQuadList
public void renderQuadList(PoseStack p_115163_, VertexConsumer p_115164_, List<BakedQuad> p_115165_, ItemStack p_115166_, int p_115167_, int p_115168_) -
getModel
public BakedModel getModel(ItemStack p_174265_, @Nullable Level p_174266_, @Nullable LivingEntity p_174267_, int p_174268_) -
renderStatic
public 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_) -
renderStatic
public 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_) -
renderGuiItem
-
renderGuiItem
protected void renderGuiItem(PoseStack p_275246_, ItemStack p_275195_, int p_275214_, int p_275658_, BakedModel p_275740_) -
renderAndDecorateItem
-
renderAndDecorateItem
-
renderAndDecorateItem
-
renderAndDecorateFakeItem
-
renderAndDecorateItem
public void renderAndDecorateItem(PoseStack p_275668_, LivingEntity p_275691_, ItemStack p_275472_, int p_275283_, int p_275239_, int p_275587_) -
tryRenderGuiItem
private void tryRenderGuiItem(PoseStack p_275571_, @Nullable LivingEntity p_275317_, @Nullable Level p_275599_, ItemStack p_275500_, int p_275679_, int p_275377_, int p_275380_) -
tryRenderGuiItem
private void tryRenderGuiItem(PoseStack p_275419_, @Nullable LivingEntity p_275405_, @Nullable Level p_275402_, ItemStack p_275431_, int p_275347_, int p_275504_, int p_275678_, int p_275555_) -
renderGuiItemDecorations
-
renderGuiItemDecorations
-
onResourceManagerReload
- Specified by:
onResourceManagerReload
in interfaceResourceManagerReloadListener
-
getBlockEntityRenderer
-