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 TypeMethodDescriptionprivate static PoseStack.PosecomputeFoilDecalPose(ItemDisplayContext type, PoseStack.Pose pose) static VertexConsumergetFoilBuffer(MultiBufferSource bufferSource, RenderType renderType, boolean sheeted, boolean hasFoil) private static VertexConsumergetFoilBuffer(MultiBufferSource bufferSource, RenderType renderType, @Nullable PoseStack.Pose foilDecalPose) private static RenderTypegetFoilRenderType(RenderType baseRenderType, boolean sheeted) static List<RenderType> getFoilRenderTypes(RenderType baseRenderType, boolean sheeted, boolean hasFoil) private static intgetLayerColorSafe(int[] layers, int layer) private static intgetLayerColorSafe(int[] tintLayers, BakedQuad quad) static voidrenderItem(ItemDisplayContext type, PoseStack poseStack, MultiBufferSource bufferSource, int lightCoords, int overlayCoords, int[] tintLayers, List<BakedQuad> quads, ItemStackRenderState.FoilType foilType) private static booleanuseTransparentGlint(RenderType renderType)
-
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 type, PoseStack poseStack, MultiBufferSource bufferSource, int lightCoords, int overlayCoords, int[] tintLayers, List<BakedQuad> quads, ItemStackRenderState.FoilType foilType) -
getFoilBuffer
private static VertexConsumer getFoilBuffer(MultiBufferSource bufferSource, RenderType renderType, @Nullable PoseStack.Pose foilDecalPose) -
computeFoilDecalPose
-
getFoilBuffer
public static VertexConsumer getFoilBuffer(MultiBufferSource bufferSource, RenderType renderType, boolean sheeted, boolean hasFoil) -
getFoilRenderType
-
getFoilRenderTypes
public static List<RenderType> getFoilRenderTypes(RenderType baseRenderType, boolean sheeted, boolean hasFoil) -
useTransparentGlint
-
getLayerColorSafe
private static int getLayerColorSafe(int[] layers, int layer) -
getLayerColorSafe
-