Package net.minecraft.client.renderer
Class ItemRenderer
java.lang.Object
net.minecraft.client.renderer.ItemRenderer
- All Implemented Interfaces:
IFutureReloadListener
,IResourceManagerReloadListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.resources.IFutureReloadListener
IFutureReloadListener.IStage
-
Field Summary
Modifier and TypeFieldDescriptionfloat
static final ResourceLocation
private final ItemColors
private final ItemModelMesher
private final TextureManager
-
Constructor Summary
ConstructorDescriptionItemRenderer
(TextureManager p_i46552_1_, ModelManager p_i46552_2_, ItemColors p_i46552_3_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
fillRect
(BufferBuilder p_181565_1_, int p_181565_2_, int p_181565_3_, int p_181565_4_, int p_181565_5_, int p_181565_6_, int p_181565_7_, int p_181565_8_, int p_181565_9_) static IVertexBuilder
getArmorFoilBuffer
(IRenderTypeBuffer p_239386_0_, RenderType p_239386_1_, boolean p_239386_2_, boolean p_239386_3_) static IVertexBuilder
getCompassFoilBuffer
(IRenderTypeBuffer p_241731_0_, RenderType p_241731_1_, MatrixStack.Entry p_241731_2_) static IVertexBuilder
getCompassFoilBufferDirect
(IRenderTypeBuffer p_241732_0_, RenderType p_241732_1_, MatrixStack.Entry p_241732_2_) static IVertexBuilder
getFoilBuffer
(IRenderTypeBuffer p_229113_0_, RenderType p_229113_1_, boolean p_229113_2_, boolean p_229113_3_) static IVertexBuilder
getFoilBufferDirect
(IRenderTypeBuffer p_239391_0_, RenderType p_239391_1_, boolean p_239391_2_, boolean p_239391_3_) getModel
(ItemStack p_184393_1_, World p_184393_2_, LivingEntity p_184393_3_) void
onResourceManagerReload
(IResourceManager p_195410_1_) void
render
(ItemStack p_229111_1_, ItemCameraTransforms.TransformType p_229111_2_, boolean p_229111_3_, MatrixStack p_229111_4_, IRenderTypeBuffer p_229111_5_, int p_229111_6_, int p_229111_7_, IBakedModel p_229111_8_) void
renderAndDecorateFakeItem
(ItemStack p_239390_1_, int p_239390_2_, int p_239390_3_) void
renderAndDecorateItem
(LivingEntity p_184391_1_, ItemStack p_184391_2_, int p_184391_3_, int p_184391_4_) void
renderAndDecorateItem
(ItemStack p_180450_1_, int p_180450_2_, int p_180450_3_) void
renderGuiItem
(ItemStack p_175042_1_, int p_175042_2_, int p_175042_3_) protected void
renderGuiItem
(ItemStack p_191962_1_, int p_191962_2_, int p_191962_3_, IBakedModel p_191962_4_) void
renderGuiItemDecorations
(FontRenderer p_175030_1_, ItemStack p_175030_2_, int p_175030_3_, int p_175030_4_) void
renderGuiItemDecorations
(FontRenderer p_180453_1_, ItemStack p_180453_2_, int p_180453_3_, int p_180453_4_, String p_180453_5_) void
renderModelLists
(IBakedModel p_229114_1_, ItemStack p_229114_2_, int p_229114_3_, int p_229114_4_, MatrixStack p_229114_5_, IVertexBuilder p_229114_6_) void
renderQuadList
(MatrixStack p_229112_1_, IVertexBuilder p_229112_2_, List<BakedQuad> p_229112_3_, ItemStack p_229112_4_, int p_229112_5_, int p_229112_6_) void
renderStatic
(LivingEntity p_229109_1_, ItemStack p_229109_2_, ItemCameraTransforms.TransformType p_229109_3_, boolean p_229109_4_, MatrixStack p_229109_5_, IRenderTypeBuffer p_229109_6_, World p_229109_7_, int p_229109_8_, int p_229109_9_) void
renderStatic
(ItemStack p_229110_1_, ItemCameraTransforms.TransformType p_229110_2_, int p_229110_3_, int p_229110_4_, MatrixStack p_229110_5_, IRenderTypeBuffer p_229110_6_) private void
tryRenderGuiItem
(LivingEntity p_239387_1_, ItemStack p_239387_2_, int p_239387_3_, int p_239387_4_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.resources.IFutureReloadListener
getName
Methods inherited from interface net.minecraft.resources.IResourceManagerReloadListener
reload
-
Field Details
-
ENCHANT_GLINT_LOCATION
-
IGNORED
-
blitOffset
public float blitOffset -
itemModelShaper
-
textureManager
-
itemColors
-
-
Constructor Details
-
ItemRenderer
-
-
Method Details
-
getItemModelShaper
-
renderModelLists
public void renderModelLists(IBakedModel p_229114_1_, ItemStack p_229114_2_, int p_229114_3_, int p_229114_4_, MatrixStack p_229114_5_, IVertexBuilder p_229114_6_) -
render
public void render(ItemStack p_229111_1_, ItemCameraTransforms.TransformType p_229111_2_, boolean p_229111_3_, MatrixStack p_229111_4_, IRenderTypeBuffer p_229111_5_, int p_229111_6_, int p_229111_7_, IBakedModel p_229111_8_) -
getArmorFoilBuffer
public static IVertexBuilder getArmorFoilBuffer(IRenderTypeBuffer p_239386_0_, RenderType p_239386_1_, boolean p_239386_2_, boolean p_239386_3_) -
getCompassFoilBuffer
public static IVertexBuilder getCompassFoilBuffer(IRenderTypeBuffer p_241731_0_, RenderType p_241731_1_, MatrixStack.Entry p_241731_2_) -
getCompassFoilBufferDirect
public static IVertexBuilder getCompassFoilBufferDirect(IRenderTypeBuffer p_241732_0_, RenderType p_241732_1_, MatrixStack.Entry p_241732_2_) -
getFoilBuffer
public static IVertexBuilder getFoilBuffer(IRenderTypeBuffer p_229113_0_, RenderType p_229113_1_, boolean p_229113_2_, boolean p_229113_3_) -
getFoilBufferDirect
public static IVertexBuilder getFoilBufferDirect(IRenderTypeBuffer p_239391_0_, RenderType p_239391_1_, boolean p_239391_2_, boolean p_239391_3_) -
renderQuadList
public void renderQuadList(MatrixStack p_229112_1_, IVertexBuilder p_229112_2_, List<BakedQuad> p_229112_3_, ItemStack p_229112_4_, int p_229112_5_, int p_229112_6_) -
getModel
public IBakedModel getModel(ItemStack p_184393_1_, @Nullable World p_184393_2_, @Nullable LivingEntity p_184393_3_) -
renderStatic
public void renderStatic(ItemStack p_229110_1_, ItemCameraTransforms.TransformType p_229110_2_, int p_229110_3_, int p_229110_4_, MatrixStack p_229110_5_, IRenderTypeBuffer p_229110_6_) -
renderStatic
public void renderStatic(@Nullable LivingEntity p_229109_1_, ItemStack p_229109_2_, ItemCameraTransforms.TransformType p_229109_3_, boolean p_229109_4_, MatrixStack p_229109_5_, IRenderTypeBuffer p_229109_6_, @Nullable World p_229109_7_, int p_229109_8_, int p_229109_9_) -
renderGuiItem
-
renderGuiItem
protected void renderGuiItem(ItemStack p_191962_1_, int p_191962_2_, int p_191962_3_, IBakedModel p_191962_4_) -
renderAndDecorateItem
-
renderAndDecorateFakeItem
-
renderAndDecorateItem
public void renderAndDecorateItem(LivingEntity p_184391_1_, ItemStack p_184391_2_, int p_184391_3_, int p_184391_4_) -
tryRenderGuiItem
private void tryRenderGuiItem(@Nullable LivingEntity p_239387_1_, ItemStack p_239387_2_, int p_239387_3_, int p_239387_4_) -
renderGuiItemDecorations
public void renderGuiItemDecorations(FontRenderer p_175030_1_, ItemStack p_175030_2_, int p_175030_3_, int p_175030_4_) -
renderGuiItemDecorations
public void renderGuiItemDecorations(FontRenderer p_180453_1_, ItemStack p_180453_2_, int p_180453_3_, int p_180453_4_, @Nullable String p_180453_5_) -
fillRect
private void fillRect(BufferBuilder p_181565_1_, int p_181565_2_, int p_181565_3_, int p_181565_4_, int p_181565_5_, int p_181565_6_, int p_181565_7_, int p_181565_8_, int p_181565_9_) -
onResourceManagerReload
- Specified by:
onResourceManagerReload
in interfaceIResourceManagerReloadListener
-
getResourceType
- Specified by:
getResourceType
in interfaceIResourceManagerReloadListener
-