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

Static Public Member Functions

static void preloadTexture (String texture)
 
static void registerItemRenderer (int itemID, IItemRenderer renderer)
 
static IItemRenderer getItemRenderer (ItemStack item, ItemRenderType type)
 
static int getRenderPass ()
 
static int getStencilBits ()
 
static int reserveStencilBit ()
 
static void releaseStencilBit (int bit)
 

Member Function Documentation

static IItemRenderer net.minecraftforge.client.MinecraftForgeClient.getItemRenderer ( ItemStack  item,
ItemRenderType  type 
)
static
static int net.minecraftforge.client.MinecraftForgeClient.getRenderPass ( )
static
static int net.minecraftforge.client.MinecraftForgeClient.getStencilBits ( )
static
static void net.minecraftforge.client.MinecraftForgeClient.preloadTexture ( String  texture)
static

NO-OP now. Not needed with new texturing system in MC 1.5

static void net.minecraftforge.client.MinecraftForgeClient.registerItemRenderer ( int  itemID,
IItemRenderer  renderer 
)
static

Register a custom renderer for a specific item. This can be used to render the item in-world as an EntityItem, when the item is equipped, or when the item is in an inventory slot.

Parameters
itemIDThe item ID (shifted index) to handle rendering.
rendererThe IItemRenderer interface that handles rendering for this item.
static void net.minecraftforge.client.MinecraftForgeClient.releaseStencilBit ( int  bit)
static

Release the stencil bit for other use

Parameters
bitThe bit from reserveStencilBit()
static int net.minecraftforge.client.MinecraftForgeClient.reserveStencilBit ( )
static

Reserve a stencil bit for use in rendering

Returns
A bit or -1 if no further stencil bits are available

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