YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraftforge.client.IItemRenderer Interface Reference

Classes

enum  ItemRendererHelper
 
enum  ItemRenderType
 

Public Member Functions

boolean handleRenderType (ItemStack item, ItemRenderType type)
 
boolean shouldUseRenderHelper (ItemRenderType type, ItemStack item, ItemRendererHelper helper)
 
void renderItem (ItemRenderType type, ItemStack item, Object...data)
 

Member Function Documentation

boolean net.minecraftforge.client.IItemRenderer.handleRenderType ( ItemStack  item,
ItemRenderType  type 
)

Checks if this renderer should handle a specific item's render type

Parameters
itemThe item we are trying to render
typeA render type to check if this renderer handles
Returns
true if this renderer should handle the given render type, otherwise false
void net.minecraftforge.client.IItemRenderer.renderItem ( ItemRenderType  type,
ItemStack  item,
Object...  data 
)

Called to do the actual rendering, see ItemRenderType for details on when specific types are run, and what extra data is passed into the data parameter.

Parameters
typeThe render type
itemThe ItemStack being rendered
dataExtra Type specific data
boolean net.minecraftforge.client.IItemRenderer.shouldUseRenderHelper ( ItemRenderType  type,
ItemStack  item,
ItemRendererHelper  helper 
)

Checks if certain helper functionality should be executed for this renderer. See ItemRendererHelper for more info

Parameters
typeThe render type
itemThe ItemStack being rendered
helperThe type of helper functionality to be ran
Returns
True to run the helper functionality, false to not.

The documentation for this interface was generated from the following file: