YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
cpw.mods.fml.client.registry.RenderingRegistry Class Reference

Public Member Functions

boolean renderWorldBlock (RenderBlocks renderer, IBlockAccess world, int x, int y, int z, Block block, int modelId)
 
void renderInventoryBlock (RenderBlocks renderer, Block block, int metadata, int modelID)
 
boolean renderItemAsFull3DBlock (int modelId)
 
void loadEntityRenderers (Map< Class<?extends Entity >, Render > rendererMap)
 

Static Public Member Functions

static int addNewArmourRendererPrefix (String armor)
 
static void registerEntityRenderingHandler (Class<?extends Entity > entityClass, Render renderer)
 
static void registerBlockHandler (ISimpleBlockRenderingHandler handler)
 
static void registerBlockHandler (int renderId, ISimpleBlockRenderingHandler handler)
 
static int getNextAvailableRenderId ()
 
static int addTextureOverride (String fileToOverride, String fileToAdd)
 
static void addTextureOverride (String path, String overlayPath, int index)
 
static int getUniqueTextureIndex (String path)
 
static RenderingRegistry instance ()
 

Detailed Description

Author
cpw

Member Function Documentation

static int cpw.mods.fml.client.registry.RenderingRegistry.addNewArmourRendererPrefix ( String  armor)
static

Add a new armour prefix to the RenderPlayer

Parameters
armor
static int cpw.mods.fml.client.registry.RenderingRegistry.addTextureOverride ( String  fileToOverride,
String  fileToAdd 
)
static

Add a texture override for the given path and return the used index

Parameters
fileToOverride
fileToAdd
static void cpw.mods.fml.client.registry.RenderingRegistry.addTextureOverride ( String  path,
String  overlayPath,
int  index 
)
static

Add a texture override for the given path and index

Parameters
path
overlayPath
index
static int cpw.mods.fml.client.registry.RenderingRegistry.getNextAvailableRenderId ( )
static

Get the next available renderId from the block render ID list

static int cpw.mods.fml.client.registry.RenderingRegistry.getUniqueTextureIndex ( String  path)
static

Get and reserve a unique texture index for the supplied path

Parameters
path
static RenderingRegistry cpw.mods.fml.client.registry.RenderingRegistry.instance ( )
static
void cpw.mods.fml.client.registry.RenderingRegistry.loadEntityRenderers ( Map< Class<?extends Entity >, Render rendererMap)
static void cpw.mods.fml.client.registry.RenderingRegistry.registerBlockHandler ( ISimpleBlockRenderingHandler  handler)
static

Register a simple block rendering handler

Parameters
handler
static void cpw.mods.fml.client.registry.RenderingRegistry.registerBlockHandler ( int  renderId,
ISimpleBlockRenderingHandler  handler 
)
static

Register the simple block rendering handler This version will not call getRenderId on the passed in handler, instead using the supplied ID, so you can easily re-use the same rendering handler for multiple IDs

Parameters
renderId
handler
static void cpw.mods.fml.client.registry.RenderingRegistry.registerEntityRenderingHandler ( Class<?extends Entity entityClass,
Render  renderer 
)
static

Register an entity rendering handler. This will, after mod initialization, be inserted into the main render map for entities

Parameters
entityClass
renderer
void cpw.mods.fml.client.registry.RenderingRegistry.renderInventoryBlock ( RenderBlocks  renderer,
Block  block,
int  metadata,
int  modelID 
)
boolean cpw.mods.fml.client.registry.RenderingRegistry.renderItemAsFull3DBlock ( int  modelId)
boolean cpw.mods.fml.client.registry.RenderingRegistry.renderWorldBlock ( RenderBlocks  renderer,
IBlockAccess  world,
int  x,
int  y,
int  z,
Block  block,
int  modelId 
)

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