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
FieldsModifier 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
ConstructorsConstructorDescriptionItemRenderer
(Minecraft pMinecraft, TextureManager pTextureManager, ModelManager pModelManager, ItemColors pItemColors, BlockEntityWithoutLevelRenderer pBlockEntityRenderer) -
Method Summary
Modifier and TypeMethodDescriptionstatic VertexConsumer
getArmorFoilBuffer
(MultiBufferSource pBufferSource, RenderType pRenderType, boolean pHasFoil) static VertexConsumer
getCompassFoilBuffer
(MultiBufferSource pBufferSource, RenderType pRenderType, PoseStack.Pose pPose) static VertexConsumer
getFoilBuffer
(MultiBufferSource pBufferSource, RenderType pRenderType, boolean pIsItem, boolean pGlint) static VertexConsumer
getFoilBufferDirect
(MultiBufferSource pBufferSource, RenderType pRenderType, boolean pNoEntity, boolean pWithGlint) getModel
(ItemStack pStack, Level pLevel, LivingEntity pEntity, int pSeed) private static boolean
hasAnimatedTexture
(ItemStack pStack) void
onResourceManagerReload
(ResourceManager pResourceManager) void
render
(ItemStack pItemStack, ItemDisplayContext pDisplayContext, boolean pLeftHand, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pCombinedLight, int pCombinedOverlay, BakedModel pModel) void
renderModelLists
(BakedModel pModel, ItemStack pStack, int pCombinedLight, int pCombinedOverlay, PoseStack pPoseStack, VertexConsumer pBuffer) void
renderQuadList
(PoseStack pPoseStack, VertexConsumer pBuffer, List<BakedQuad> pQuads, ItemStack pItemStack, int pCombinedLight, int pCombinedOverlay) void
renderStatic
(LivingEntity pEntity, ItemStack pItemStack, ItemDisplayContext pDiplayContext, boolean pLeftHand, PoseStack pPoseStack, MultiBufferSource pBufferSource, Level pLevel, int pCombinedLight, int pCombinedOverlay, int pSeed) void
renderStatic
(ItemStack pStack, ItemDisplayContext pDisplayContext, int pCombinedLight, int pCombinedOverlay, PoseStack pPoseStack, MultiBufferSource pBufferSource, Level pLevel, int pSeed) 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 pMinecraft, TextureManager pTextureManager, ModelManager pModelManager, ItemColors pItemColors, BlockEntityWithoutLevelRenderer pBlockEntityRenderer)
-
-
Method Details
-
getItemModelShaper
-
renderModelLists
public void renderModelLists(BakedModel pModel, ItemStack pStack, int pCombinedLight, int pCombinedOverlay, PoseStack pPoseStack, VertexConsumer pBuffer) -
render
public void render(ItemStack pItemStack, ItemDisplayContext pDisplayContext, boolean pLeftHand, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pCombinedLight, int pCombinedOverlay, BakedModel pModel) -
hasAnimatedTexture
-
getArmorFoilBuffer
public static VertexConsumer getArmorFoilBuffer(MultiBufferSource pBufferSource, RenderType pRenderType, boolean pHasFoil) -
getCompassFoilBuffer
public static VertexConsumer getCompassFoilBuffer(MultiBufferSource pBufferSource, RenderType pRenderType, PoseStack.Pose pPose) -
getFoilBuffer
public static VertexConsumer getFoilBuffer(MultiBufferSource pBufferSource, RenderType pRenderType, boolean pIsItem, boolean pGlint) -
getFoilBufferDirect
public static VertexConsumer getFoilBufferDirect(MultiBufferSource pBufferSource, RenderType pRenderType, boolean pNoEntity, boolean pWithGlint) -
renderQuadList
public void renderQuadList(PoseStack pPoseStack, VertexConsumer pBuffer, List<BakedQuad> pQuads, ItemStack pItemStack, int pCombinedLight, int pCombinedOverlay) -
getModel
public BakedModel getModel(ItemStack pStack, @Nullable Level pLevel, @Nullable LivingEntity pEntity, int pSeed) -
renderStatic
public void renderStatic(ItemStack pStack, ItemDisplayContext pDisplayContext, int pCombinedLight, int pCombinedOverlay, PoseStack pPoseStack, MultiBufferSource pBufferSource, @Nullable Level pLevel, int pSeed) -
renderStatic
public void renderStatic(@Nullable LivingEntity pEntity, ItemStack pItemStack, ItemDisplayContext pDiplayContext, boolean pLeftHand, PoseStack pPoseStack, MultiBufferSource pBufferSource, @Nullable Level pLevel, int pCombinedLight, int pCombinedOverlay, int pSeed) -
onResourceManagerReload
- Specified by:
onResourceManagerReload
in interfaceResourceManagerReloadListener
-
getBlockEntityRenderer
-