public class ItemRenderer extends java.lang.Object implements IResourceManagerReloadListener
IFutureReloadListener.IStage
Modifier and Type | Field and Description |
---|---|
private static java.util.Set<Item> |
ITEM_MODEL_BLACKLIST |
private ItemColors |
itemColors |
private ItemModelMesher |
itemModelMesher |
static ResourceLocation |
RES_ITEM_GLINT |
private TextureManager |
textureManager |
float |
zLevel |
Constructor and Description |
---|
ItemRenderer(TextureManager textureManagerIn,
ModelManager modelManagerIn,
ItemColors itemColorsIn) |
Modifier and Type | Method and Description |
---|---|
private void |
draw(BufferBuilder renderer,
int x,
int y,
int width,
int height,
int red,
int green,
int blue,
int alpha) |
static IVertexBuilder |
getBuffer(IRenderTypeBuffer bufferIn,
RenderType renderTypeIn,
boolean isItemIn,
boolean glintIn) |
ItemModelMesher |
getItemModelMesher() |
IBakedModel |
getItemModelWithOverrides(ItemStack stack,
World worldIn,
LivingEntity entitylivingbaseIn) |
private IBakedModel |
getModelWithOverrides(IBakedModel model,
ItemStack stack,
World worldIn,
LivingEntity entityIn) |
IResourceType |
getResourceType() |
void |
onResourceManagerReload(IResourceManager resourceManager) |
void |
renderItem(ItemStack itemStackIn,
ItemCameraTransforms.TransformType transformTypeIn,
boolean leftHand,
MatrixStack matrixStackIn,
IRenderTypeBuffer bufferIn,
int combinedLightIn,
int combinedOverlayIn,
IBakedModel modelIn) |
void |
renderItem(ItemStack itemStackIn,
ItemCameraTransforms.TransformType transformTypeIn,
int combinedLightIn,
int combinedOverlayIn,
MatrixStack matrixStackIn,
IRenderTypeBuffer bufferIn) |
void |
renderItem(LivingEntity livingEntityIn,
ItemStack itemStackIn,
ItemCameraTransforms.TransformType transformTypeIn,
boolean leftHand,
MatrixStack matrixStackIn,
IRenderTypeBuffer bufferIn,
World worldIn,
int combinedLightIn,
int combinedOverlayIn) |
void |
renderItemAndEffectIntoGUI(ItemStack stack,
int xPosition,
int yPosition) |
void |
renderItemAndEffectIntoGUI(LivingEntity entityIn,
ItemStack itemIn,
int x,
int y) |
void |
renderItemIntoGUI(ItemStack stack,
int x,
int y) |
protected void |
renderItemModelIntoGUI(ItemStack stack,
int x,
int y,
IBakedModel bakedmodel) |
void |
renderItemOverlayIntoGUI(FontRenderer fr,
ItemStack stack,
int xPosition,
int yPosition,
java.lang.String text) |
void |
renderItemOverlays(FontRenderer fr,
ItemStack stack,
int xPosition,
int yPosition) |
private void |
renderModel(IBakedModel modelIn,
ItemStack stack,
int combinedLightIn,
int combinedOverlayIn,
MatrixStack matrixStackIn,
IVertexBuilder bufferIn) |
void |
renderQuads(MatrixStack matrixStackIn,
IVertexBuilder bufferIn,
java.util.List<BakedQuad> quadsIn,
ItemStack itemStackIn,
int combinedLightIn,
int combinedOverlayIn) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
reload
func_225594_i_
public static final ResourceLocation RES_ITEM_GLINT
private static final java.util.Set<Item> ITEM_MODEL_BLACKLIST
public float zLevel
private final ItemModelMesher itemModelMesher
private final TextureManager textureManager
private final ItemColors itemColors
public ItemRenderer(TextureManager textureManagerIn, ModelManager modelManagerIn, ItemColors itemColorsIn)
public ItemModelMesher getItemModelMesher()
private void renderModel(IBakedModel modelIn, ItemStack stack, int combinedLightIn, int combinedOverlayIn, MatrixStack matrixStackIn, IVertexBuilder bufferIn)
public void renderItem(ItemStack itemStackIn, ItemCameraTransforms.TransformType transformTypeIn, boolean leftHand, MatrixStack matrixStackIn, IRenderTypeBuffer bufferIn, int combinedLightIn, int combinedOverlayIn, IBakedModel modelIn)
public static IVertexBuilder getBuffer(IRenderTypeBuffer bufferIn, RenderType renderTypeIn, boolean isItemIn, boolean glintIn)
public void renderQuads(MatrixStack matrixStackIn, IVertexBuilder bufferIn, java.util.List<BakedQuad> quadsIn, ItemStack itemStackIn, int combinedLightIn, int combinedOverlayIn)
public IBakedModel getItemModelWithOverrides(ItemStack stack, @Nullable World worldIn, @Nullable LivingEntity entitylivingbaseIn)
private IBakedModel getModelWithOverrides(IBakedModel model, ItemStack stack, @Nullable World worldIn, @Nullable LivingEntity entityIn)
public void renderItem(ItemStack itemStackIn, ItemCameraTransforms.TransformType transformTypeIn, int combinedLightIn, int combinedOverlayIn, MatrixStack matrixStackIn, IRenderTypeBuffer bufferIn)
public void renderItem(@Nullable LivingEntity livingEntityIn, ItemStack itemStackIn, ItemCameraTransforms.TransformType transformTypeIn, boolean leftHand, MatrixStack matrixStackIn, IRenderTypeBuffer bufferIn, @Nullable World worldIn, int combinedLightIn, int combinedOverlayIn)
public void renderItemIntoGUI(ItemStack stack, int x, int y)
protected void renderItemModelIntoGUI(ItemStack stack, int x, int y, IBakedModel bakedmodel)
public void renderItemAndEffectIntoGUI(ItemStack stack, int xPosition, int yPosition)
public void renderItemAndEffectIntoGUI(@Nullable LivingEntity entityIn, ItemStack itemIn, int x, int y)
public void renderItemOverlays(FontRenderer fr, ItemStack stack, int xPosition, int yPosition)
public void renderItemOverlayIntoGUI(FontRenderer fr, ItemStack stack, int xPosition, int yPosition, @Nullable java.lang.String text)
private void draw(BufferBuilder renderer, int x, int y, int width, int height, int red, int green, int blue, int alpha)
public void onResourceManagerReload(IResourceManager resourceManager)
onResourceManagerReload
in interface IResourceManagerReloadListener
public IResourceType getResourceType()
getResourceType
in interface IResourceManagerReloadListener