Class ItemRenderer
java.lang.Object
net.minecraft.client.renderer.entity.ItemRenderer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final floatstatic final floatstatic final floatstatic final ResourceLocationstatic final ResourceLocationstatic final intstatic final intstatic final intstatic final intprivate final ItemModelResolverprivate final ItemStackRenderState -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VertexConsumergetArmorFoilBuffer(MultiBufferSource bufferSource, RenderType renderType, boolean hasFoil) private static VertexConsumergetCompassFoilBuffer(MultiBufferSource bufferSource, RenderType renderType, PoseStack.Pose pose) static VertexConsumergetFoilBuffer(MultiBufferSource bufferSource, RenderType renderType, boolean isItem, boolean glint) private static intgetLayerColorSafe(int[] tintLayers, int index) 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) voidrenderStatic(LivingEntity entity, ItemStack stack, ItemDisplayContext displayContext, PoseStack poseStack, MultiBufferSource bufferSource, Level level, int packedLight, int packedOverlay, int seed) voidrenderStatic(ItemStack stack, ItemDisplayContext displayContext, int packedLight, int packedOverlay, PoseStack poseStack, MultiBufferSource bufferSource, Level level, int seed)
-
Field Details
-
ENCHANTED_GLINT_ARMOR
-
ENCHANTED_GLINT_ITEM
-
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_DECORATION_BLIT_OFFSET
public static final int ITEM_DECORATION_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:
-
NO_TINT
public static final int NO_TINT- See Also:
-
resolver
-
scratchItemStackRenderState
-
-
Constructor Details
-
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) -
getArmorFoilBuffer
public static VertexConsumer getArmorFoilBuffer(MultiBufferSource bufferSource, RenderType renderType, boolean hasFoil) -
getCompassFoilBuffer
private static VertexConsumer getCompassFoilBuffer(MultiBufferSource bufferSource, RenderType renderType, PoseStack.Pose pose) -
getFoilBuffer
public static VertexConsumer getFoilBuffer(MultiBufferSource bufferSource, RenderType renderType, boolean isItem, boolean glint) -
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) -
renderStatic
public void renderStatic(ItemStack stack, ItemDisplayContext displayContext, int packedLight, int packedOverlay, PoseStack poseStack, MultiBufferSource bufferSource, @Nullable Level level, int seed) -
renderStatic
public void renderStatic(@Nullable LivingEntity entity, ItemStack stack, ItemDisplayContext displayContext, PoseStack poseStack, MultiBufferSource bufferSource, @Nullable Level level, int packedLight, int packedOverlay, int seed)
-