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 TypeFieldDescriptionfloat
private final BlockEntityWithoutLevelRenderer
static final float
static final float
static final ResourceLocation
private static final int
private static final int
static final int
private final ItemColors
private final ItemModelShaper
private final TextureManager
-
Constructor Summary
ConstructorDescriptionItemRenderer
(TextureManager p_174225_, ModelManager p_174226_, ItemColors p_174227_, BlockEntityWithoutLevelRenderer p_174228_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
fillRect
(BufferBuilder p_115153_, int p_115154_, int p_115155_, int p_115156_, int p_115157_, int p_115158_, int p_115159_, int p_115160_, int p_115161_) static 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_, ItemTransforms.TransformType p_115145_, boolean p_115146_, PoseStack p_115147_, MultiBufferSource p_115148_, int p_115149_, int p_115150_, BakedModel p_115151_) void
renderAndDecorateFakeItem
(ItemStack p_115219_, int p_115220_, int p_115221_) void
renderAndDecorateItem
(LivingEntity p_174230_, ItemStack p_174231_, int p_174232_, int p_174233_, int p_174234_) void
renderAndDecorateItem
(ItemStack p_115204_, int p_115205_, int p_115206_) void
renderAndDecorateItem
(ItemStack p_174254_, int p_174255_, int p_174256_, int p_174257_) void
renderAndDecorateItem
(ItemStack p_174259_, int p_174260_, int p_174261_, int p_174262_, int p_174263_) void
renderGuiItem
(ItemStack p_115124_, int p_115125_, int p_115126_) protected void
renderGuiItem
(ItemStack p_115128_, int p_115129_, int p_115130_, BakedModel p_115131_) void
renderGuiItemDecorations
(Font p_115170_, ItemStack p_115171_, int p_115172_, int p_115173_) void
renderGuiItemDecorations
(Font p_115175_, ItemStack p_115176_, int p_115177_, int p_115178_, String p_115179_) 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_174243_, ItemStack p_174244_, ItemTransforms.TransformType p_174245_, boolean p_174246_, PoseStack p_174247_, MultiBufferSource p_174248_, Level p_174249_, int p_174250_, int p_174251_, int p_174252_) void
renderStatic
(ItemStack p_174270_, ItemTransforms.TransformType p_174271_, int p_174272_, int p_174273_, PoseStack p_174274_, MultiBufferSource p_174275_, int p_174276_) private void
tryRenderGuiItem
(LivingEntity p_174278_, ItemStack p_174279_, int p_174280_, int p_174281_, int p_174282_) private void
tryRenderGuiItem
(LivingEntity p_174236_, ItemStack p_174237_, int p_174238_, int p_174239_, int p_174240_, int p_174241_) 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
-
ENCHANT_GLINT_LOCATION
-
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:
-
blitOffset
public float blitOffset -
itemModelShaper
-
textureManager
-
itemColors
-
blockEntityRenderer
-
-
Constructor Details
-
ItemRenderer
public ItemRenderer(TextureManager p_174225_, ModelManager p_174226_, ItemColors p_174227_, BlockEntityWithoutLevelRenderer p_174228_)
-
-
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_, ItemTransforms.TransformType p_115145_, 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_174270_, ItemTransforms.TransformType p_174271_, int p_174272_, int p_174273_, PoseStack p_174274_, MultiBufferSource p_174275_, int p_174276_) -
renderStatic
public void renderStatic(@Nullable LivingEntity p_174243_, ItemStack p_174244_, ItemTransforms.TransformType p_174245_, boolean p_174246_, PoseStack p_174247_, MultiBufferSource p_174248_, @Nullable Level p_174249_, int p_174250_, int p_174251_, int p_174252_) -
renderGuiItem
-
renderGuiItem
protected void renderGuiItem(ItemStack p_115128_, int p_115129_, int p_115130_, BakedModel p_115131_) -
renderAndDecorateItem
-
renderAndDecorateItem
-
renderAndDecorateItem
public void renderAndDecorateItem(ItemStack p_174259_, int p_174260_, int p_174261_, int p_174262_, int p_174263_) -
renderAndDecorateFakeItem
-
renderAndDecorateItem
public void renderAndDecorateItem(LivingEntity p_174230_, ItemStack p_174231_, int p_174232_, int p_174233_, int p_174234_) -
tryRenderGuiItem
private void tryRenderGuiItem(@Nullable LivingEntity p_174278_, ItemStack p_174279_, int p_174280_, int p_174281_, int p_174282_) -
tryRenderGuiItem
private void tryRenderGuiItem(@Nullable LivingEntity p_174236_, ItemStack p_174237_, int p_174238_, int p_174239_, int p_174240_, int p_174241_) -
renderGuiItemDecorations
-
renderGuiItemDecorations
-
fillRect
private void fillRect(BufferBuilder p_115153_, int p_115154_, int p_115155_, int p_115156_, int p_115157_, int p_115158_, int p_115159_, int p_115160_, int p_115161_) -
onResourceManagerReload
- Specified by:
onResourceManagerReload
in interfaceResourceManagerReloadListener
-
getBlockEntityRenderer
-