Class ItemRenderer
java.lang.Object
net.minecraft.client.renderer.entity.ItemRenderer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ResourceLocationstatic final ResourceLocationstatic final intstatic final floatstatic final floatstatic final float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VertexConsumergetFoilBuffer(MultiBufferSource bufferSource, RenderType renderType, boolean isItem, boolean glint) static List<RenderType> getFoilRenderTypes(RenderType renderType, boolean isItem, boolean glint) private static intgetLayerColorSafe(int[] tintLayers, int index) private static VertexConsumergetSpecialFoilBuffer(MultiBufferSource bufferSource, RenderType renderType, PoseStack.Pose pose) static voidrenderItem(ItemDisplayContext displayContext, PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, int packedOverlay, int[] tintLayers, List<BakedQuad> quads, RenderType renderType, ItemStackRenderState.FoilType foilType) private static voidrenderQuadList(PoseStack poseStack, VertexConsumer buffer, List<BakedQuad> quads, int[] tintLayers, int packedLight, int packedOverlay) 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 displayContext, PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, int packedOverlay, int[] tintLayers, List<BakedQuad> quads, RenderType renderType, ItemStackRenderState.FoilType foilType) -
getSpecialFoilBuffer
private static VertexConsumer getSpecialFoilBuffer(MultiBufferSource bufferSource, RenderType renderType, PoseStack.Pose pose) -
getFoilBuffer
public static VertexConsumer getFoilBuffer(MultiBufferSource bufferSource, RenderType renderType, boolean isItem, boolean glint) -
getFoilRenderTypes
public static List<RenderType> getFoilRenderTypes(RenderType renderType, boolean isItem, boolean glint) -
useTransparentGlint
-
getLayerColorSafe
private static int getLayerColorSafe(int[] tintLayers, int index) -
renderQuadList
private static void renderQuadList(PoseStack poseStack, VertexConsumer buffer, List<BakedQuad> quads, int[] tintLayers, int packedLight, int packedOverlay)
-