Class ItemRenderer
java.lang.Object
net.minecraft.client.renderer.entity.ItemRenderer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Identifierstatic final Identifierstatic final intstatic final floatstatic final floatstatic final float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VertexConsumergetFoilBuffer(MultiBufferSource pBufferSource, RenderType pRenderType, boolean pIsItem, boolean pGlint) static List<RenderType> getFoilRenderTypes(RenderType pRenderType, boolean pIsItem, boolean pGlint) private static intgetLayerColorSafe(int[] pTintLayers, int pIndex) private static VertexConsumergetSpecialFoilBuffer(MultiBufferSource pBufferSource, RenderType pRenderType, PoseStack.Pose pPose) static voidrenderItem(ItemDisplayContext pDisplayContext, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, int[] pTintLayers, List<BakedQuad> pQuads, RenderType pRenderType, ItemStackRenderState.FoilType pFoilType) private static voidrenderQuadList(PoseStack pPoseStack, VertexConsumer pConsumer, List<BakedQuad> pQuads, int[] pTintLayers, int pPackedLight, int pPackedOverlay) private static booleanuseTransparentGlint(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:
-
-
Constructor Details
-
ItemRenderer
public 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) -
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) -
getFoilRenderTypes
public static List<RenderType> getFoilRenderTypes(RenderType pRenderType, boolean pIsItem, boolean pGlint) -
useTransparentGlint
-
getLayerColorSafe
private static int getLayerColorSafe(int[] pTintLayers, int pIndex) -
renderQuadList
private static void renderQuadList(PoseStack pPoseStack, VertexConsumer pConsumer, List<BakedQuad> pQuads, int[] pTintLayers, int pPackedLight, int pPackedOverlay)
-