Class ItemRenderer
java.lang.Object
net.minecraft.client.renderer.entity.ItemRenderer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ResourceLocationstatic final ResourceLocationstatic final intprivate final ItemModelResolverprivate final ItemStackRenderStatestatic final floatstatic final floatstatic final float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VertexConsumergetArmorFoilBuffer(MultiBufferSource pBufferSource, RenderType pRenderType, boolean pHasFoil) static VertexConsumergetFoilBuffer(MultiBufferSource pBufferSource, 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 pBuffer, List<BakedQuad> pQuads, int[] pTintLayers, int pPackedLight, int pPackedOverlay) voidrenderStatic(LivingEntity pEntity, ItemStack pStack, ItemDisplayContext pDisplayContext, PoseStack pPoseStack, MultiBufferSource pBufferSource, Level pLevel, int pPackedLight, int pPackedOverlay, int pSeed) voidrenderStatic(ItemStack pStack, ItemDisplayContext pDisplayContext, int pPackedLight, int pPackedOverlay, PoseStack pPoseStack, MultiBufferSource pBufferSource, Level pLevel, int pSeed) 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:
-
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)
-