Class ItemRenderer
java.lang.Object
net.minecraft.client.renderer.entity.ItemRenderer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ResourceLocation
static final ResourceLocation
static final int
private final ItemModelResolver
private final ItemStackRenderState
static final float
static final float
static final float
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VertexConsumer
getArmorFoilBuffer
(MultiBufferSource pBufferSource, RenderType pRenderType, boolean pHasFoil) static VertexConsumer
getFoilBuffer
(MultiBufferSource pBufferSource, RenderType pRenderType, boolean pIsItem, boolean pGlint) private static int
getLayerColorSafe
(int[] pTintLayers, int pIndex) private static VertexConsumer
getSpecialFoilBuffer
(MultiBufferSource pBufferSource, RenderType pRenderType, PoseStack.Pose pPose) static void
renderItem
(ItemDisplayContext pDisplayContext, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, int[] pTintLayers, List<BakedQuad> pQuads, RenderType pRenderType, ItemStackRenderState.FoilType pFoilType) private static void
renderQuadList
(PoseStack pPoseStack, VertexConsumer pBuffer, List<BakedQuad> pQuads, int[] pTintLayers, int pPackedLight, int pPackedOverlay) void
renderStatic
(LivingEntity pEntity, ItemStack pStack, ItemDisplayContext pDisplayContext, PoseStack pPoseStack, MultiBufferSource pBufferSource, Level pLevel, int pPackedLight, int pPackedOverlay, int pSeed) void
renderStatic
(ItemStack pStack, ItemDisplayContext pDisplayContext, int pPackedLight, int pPackedOverlay, PoseStack pPoseStack, MultiBufferSource pBufferSource, Level pLevel, int pSeed) private static boolean
useTransparentGlint
(RenderType pRenderType)
-
Field Details
-
ENCHANTED_GLINT_ARMOR
-
ENCHANTED_GLINT_ITEM
-
SPECIAL_FOIL_UI_SCALE
public static final float SPECIAL_FOIL_UI_SCALE- See Also:
-
SPECIAL_FOIL_FIRST_PERSON_SCALE
public static final float SPECIAL_FOIL_FIRST_PERSON_SCALE- See Also:
-
SPECIAL_FOIL_TEXTURE_SCALE
public static final float SPECIAL_FOIL_TEXTURE_SCALE- See Also:
-
NO_TINT
public static final int NO_TINT- See Also:
-
resolver
-
scratchItemStackRenderState
-
-
Constructor Details
-
ItemRenderer
-
-
Method Details
-
renderItem
public static void renderItem(ItemDisplayContext pDisplayContext, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, int[] pTintLayers, List<BakedQuad> pQuads, RenderType pRenderType, ItemStackRenderState.FoilType pFoilType) -
getArmorFoilBuffer
public static VertexConsumer getArmorFoilBuffer(MultiBufferSource pBufferSource, RenderType pRenderType, boolean pHasFoil) -
getSpecialFoilBuffer
private static VertexConsumer getSpecialFoilBuffer(MultiBufferSource pBufferSource, RenderType pRenderType, PoseStack.Pose pPose) -
getFoilBuffer
public static VertexConsumer getFoilBuffer(MultiBufferSource pBufferSource, RenderType pRenderType, boolean pIsItem, boolean pGlint) -
useTransparentGlint
-
getLayerColorSafe
private static int getLayerColorSafe(int[] pTintLayers, int pIndex) -
renderQuadList
private static void renderQuadList(PoseStack pPoseStack, VertexConsumer pBuffer, List<BakedQuad> pQuads, int[] pTintLayers, int pPackedLight, int pPackedOverlay) -
renderStatic
public void renderStatic(ItemStack pStack, ItemDisplayContext pDisplayContext, int pPackedLight, int pPackedOverlay, PoseStack pPoseStack, MultiBufferSource pBufferSource, @Nullable Level pLevel, int pSeed) -
renderStatic
public void renderStatic(@Nullable LivingEntity pEntity, ItemStack pStack, ItemDisplayContext pDisplayContext, PoseStack pPoseStack, MultiBufferSource pBufferSource, @Nullable Level pLevel, int pPackedLight, int pPackedOverlay, int pSeed)
-