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
static final int
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_) private static boolean
hasAnimatedTexture
(ItemStack p_286353_) 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
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_) 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
public static final int GUI_SLOT_CENTER_X- See Also:
-
GUI_SLOT_CENTER_Y
public 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_) -
hasAnimatedTexture
-
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_) -
onResourceManagerReload
- Specified by:
onResourceManagerReload
in interfaceResourceManagerReloadListener
-
getBlockEntityRenderer
-