Package net.minecraft.client.renderer
Class ItemRenderer
- java.lang.Object
-
- net.minecraft.client.renderer.ItemRenderer
-
- All Implemented Interfaces:
IFutureReloadListener
,IResourceManagerReloadListener
public class ItemRenderer extends java.lang.Object implements IResourceManagerReloadListener
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.minecraft.resources.IFutureReloadListener
IFutureReloadListener.IStage
-
-
Field Summary
Fields Modifier and Type Field Description float
blitOffset
static ResourceLocation
ENCHANT_GLINT_LOCATION
private static java.util.Set<Item>
IGNORED
private ItemColors
itemColors
private ItemModelMesher
itemModelShaper
private TextureManager
textureManager
-
Constructor Summary
Constructors Constructor Description ItemRenderer(TextureManager p_i46552_1_, ModelManager p_i46552_2_, ItemColors p_i46552_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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_)
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_)
ItemModelMesher
getItemModelShaper()
IBakedModel
getModel(ItemStack p_184393_1_, World p_184393_2_, LivingEntity p_184393_3_)
IResourceType
getResourceType()
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_, java.lang.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_, java.util.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 Detail
-
ENCHANT_GLINT_LOCATION
public static final ResourceLocation ENCHANT_GLINT_LOCATION
-
IGNORED
private static final java.util.Set<Item> IGNORED
-
blitOffset
public float blitOffset
-
itemModelShaper
private final ItemModelMesher itemModelShaper
-
textureManager
private final TextureManager textureManager
-
itemColors
private final ItemColors itemColors
-
-
Constructor Detail
-
ItemRenderer
public ItemRenderer(TextureManager p_i46552_1_, ModelManager p_i46552_2_, ItemColors p_i46552_3_)
-
-
Method Detail
-
getItemModelShaper
public ItemModelMesher 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_, java.util.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
public void renderGuiItem(ItemStack p_175042_1_, int p_175042_2_, int p_175042_3_)
-
renderGuiItem
protected void renderGuiItem(ItemStack p_191962_1_, int p_191962_2_, int p_191962_3_, IBakedModel p_191962_4_)
-
renderAndDecorateItem
public void renderAndDecorateItem(ItemStack p_180450_1_, int p_180450_2_, int p_180450_3_)
-
renderAndDecorateFakeItem
public void renderAndDecorateFakeItem(ItemStack p_239390_1_, int p_239390_2_, int p_239390_3_)
-
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 java.lang.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
public void onResourceManagerReload(IResourceManager p_195410_1_)
- Specified by:
onResourceManagerReload
in interfaceIResourceManagerReloadListener
-
getResourceType
public IResourceType getResourceType()
- Specified by:
getResourceType
in interfaceIResourceManagerReloadListener
-
-