Class ItemFeatureRenderer
java.lang.Object
net.minecraft.client.renderer.feature.ItemFeatureRenderer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Identifierstatic final Identifierstatic final intprivate final QuadInstanceprivate static final floatprivate static final floatprivate static 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) static RenderTypegetFoilRenderType(RenderType baseRenderType, boolean sheeted) private static intgetLayerColorSafe(int[] layers, int layer) private static intgetLayerColorSafe(int[] tintLayers, BakedQuad.MaterialInfo material) private static booleanprivate voidrenderItem(MultiBufferSource.BufferSource bufferSource, OutlineBufferSource outlineBufferSource, SubmitNodeStorage.ItemSubmit submit) voidrenderSolid(SubmitNodeCollection nodeCollection, MultiBufferSource.BufferSource bufferSource, OutlineBufferSource outlineBufferSource) voidrenderTranslucent(SubmitNodeCollection nodeCollection, MultiBufferSource.BufferSource bufferSource, OutlineBufferSource outlineBufferSource) private static booleanuseTransparentGlint(RenderType renderType)
-
Field Details
-
ENCHANTED_GLINT_ARMOR
-
ENCHANTED_GLINT_ITEM
-
SPECIAL_FOIL_UI_SCALE
private static final float SPECIAL_FOIL_UI_SCALE- See Also:
-
SPECIAL_FOIL_FIRST_PERSON_SCALE
private static final float SPECIAL_FOIL_FIRST_PERSON_SCALE- See Also:
-
SPECIAL_FOIL_TEXTURE_SCALE
private static final float SPECIAL_FOIL_TEXTURE_SCALE- See Also:
-
NO_TINT
public static final int NO_TINT- See Also:
-
quadInstance
-
-
Constructor Details
-
ItemFeatureRenderer
public ItemFeatureRenderer()
-
-
Method Details
-
renderSolid
public void renderSolid(SubmitNodeCollection nodeCollection, MultiBufferSource.BufferSource bufferSource, OutlineBufferSource outlineBufferSource) -
renderTranslucent
public void renderTranslucent(SubmitNodeCollection nodeCollection, MultiBufferSource.BufferSource bufferSource, OutlineBufferSource outlineBufferSource) -
hasTranslucency
-
renderItem
private void renderItem(MultiBufferSource.BufferSource bufferSource, OutlineBufferSource outlineBufferSource, SubmitNodeStorage.ItemSubmit submit) -
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
-
useTransparentGlint
-
getLayerColorSafe
private static int getLayerColorSafe(int[] layers, int layer) -
getLayerColorSafe
-