public class RenderItem extends java.lang.Object implements IResourceManagerReloadListener
Modifier and Type | Field and Description |
---|---|
private ItemColors |
itemColors |
private ItemModelMesher |
itemModelMesher |
private boolean |
notRenderingEffectsInGUI |
private static ResourceLocation |
RES_ITEM_GLINT |
private TextureManager |
textureManager |
float |
zLevel |
Constructor and Description |
---|
RenderItem(TextureManager p_i46552_1_,
ModelManager p_i46552_2_,
ItemColors p_i46552_3_) |
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) |
ItemModelMesher |
getItemModelMesher() |
IBakedModel |
getItemModelWithOverrides(ItemStack stack,
World worldIn,
EntityLivingBase entitylivingbaseIn) |
private boolean |
isThereOneNegativeScale(ItemTransformVec3f itemTranformVec) |
void |
onResourceManagerReload(IResourceManager resourceManager) |
private void |
putQuadNormal(BufferBuilder renderer,
BakedQuad quad) |
protected void |
registerBlock(Block blk,
int subType,
java.lang.String identifier) |
private void |
registerBlock(Block blk,
java.lang.String identifier) |
protected void |
registerItem(Item itm,
int subType,
java.lang.String identifier) |
private void |
registerItem(Item itm,
java.lang.String identifier) |
private void |
registerItems() |
private void |
renderEffect(IBakedModel model) |
void |
renderItem(ItemStack stack,
EntityLivingBase entitylivingbaseIn,
ItemCameraTransforms.TransformType transform,
boolean leftHanded) |
void |
renderItem(ItemStack stack,
IBakedModel model) |
void |
renderItem(ItemStack stack,
ItemCameraTransforms.TransformType cameraTransformType) |
void |
renderItemAndEffectIntoGUI(EntityLivingBase p_184391_1_,
ItemStack p_184391_2_,
int p_184391_3_,
int p_184391_4_) |
void |
renderItemAndEffectIntoGUI(ItemStack stack,
int xPosition,
int yPosition) |
void |
renderItemIntoGUI(ItemStack stack,
int x,
int y) |
protected void |
renderItemModel(ItemStack stack,
IBakedModel bakedmodel,
ItemCameraTransforms.TransformType transform,
boolean leftHanded) |
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 model,
int color) |
private void |
renderModel(IBakedModel model,
int color,
ItemStack stack) |
private void |
renderModel(IBakedModel model,
ItemStack stack) |
private void |
renderQuad(BufferBuilder renderer,
BakedQuad quad,
int color) |
void |
renderQuads(BufferBuilder renderer,
java.util.List<BakedQuad> quads,
int color,
ItemStack stack) |
private void |
setupGuiTransform(int xPosition,
int yPosition,
boolean isGui3d) |
boolean |
shouldRenderItemIn3D(ItemStack stack) |
private static final ResourceLocation RES_ITEM_GLINT
private boolean notRenderingEffectsInGUI
public float zLevel
private final ItemModelMesher itemModelMesher
private final TextureManager textureManager
private final ItemColors itemColors
public RenderItem(TextureManager p_i46552_1_, ModelManager p_i46552_2_, ItemColors p_i46552_3_)
public ItemModelMesher getItemModelMesher()
protected void registerItem(Item itm, int subType, java.lang.String identifier)
protected void registerBlock(Block blk, int subType, java.lang.String identifier)
private void registerBlock(Block blk, java.lang.String identifier)
private void registerItem(Item itm, java.lang.String identifier)
private void renderModel(IBakedModel model, ItemStack stack)
private void renderModel(IBakedModel model, int color)
private void renderModel(IBakedModel model, int color, ItemStack stack)
public void renderItem(ItemStack stack, IBakedModel model)
private void renderEffect(IBakedModel model)
private void putQuadNormal(BufferBuilder renderer, BakedQuad quad)
private void renderQuad(BufferBuilder renderer, BakedQuad quad, int color)
public void renderQuads(BufferBuilder renderer, java.util.List<BakedQuad> quads, int color, ItemStack stack)
public boolean shouldRenderItemIn3D(ItemStack stack)
public void renderItem(ItemStack stack, ItemCameraTransforms.TransformType cameraTransformType)
public IBakedModel getItemModelWithOverrides(ItemStack stack, @Nullable World worldIn, @Nullable EntityLivingBase entitylivingbaseIn)
public void renderItem(ItemStack stack, EntityLivingBase entitylivingbaseIn, ItemCameraTransforms.TransformType transform, boolean leftHanded)
protected void renderItemModel(ItemStack stack, IBakedModel bakedmodel, ItemCameraTransforms.TransformType transform, boolean leftHanded)
private boolean isThereOneNegativeScale(ItemTransformVec3f itemTranformVec)
public void renderItemIntoGUI(ItemStack stack, int x, int y)
protected void renderItemModelIntoGUI(ItemStack stack, int x, int y, IBakedModel bakedmodel)
private void setupGuiTransform(int xPosition, int yPosition, boolean isGui3d)
public void renderItemAndEffectIntoGUI(ItemStack stack, int xPosition, int yPosition)
public void renderItemAndEffectIntoGUI(@Nullable EntityLivingBase p_184391_1_, ItemStack p_184391_2_, int p_184391_3_, int p_184391_4_)
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)
private void registerItems()
public void onResourceManagerReload(IResourceManager resourceManager)
onResourceManagerReload
in interface IResourceManagerReloadListener