public class RenderingRegistry
extends java.lang.Object
Constructor and Description |
---|
RenderingRegistry() |
Modifier and Type | Method and Description |
---|---|
static int |
addNewArmourRendererPrefix(java.lang.String armor)
Add a new armour prefix to the RenderPlayer
|
static int |
getNextAvailableRenderId()
Get the next available renderId from the block render ID list
|
static RenderingRegistry |
instance()
Deprecated.
|
void |
loadEntityRenderers(java.util.Map<java.lang.Class<? extends Entity>,Render> rendererMap) |
static void |
registerBlockHandler(int renderId,
ISimpleBlockRenderingHandler handler)
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
|
static void |
registerBlockHandler(ISimpleBlockRenderingHandler handler)
Register a simple block rendering handler
|
static void |
registerEntityRenderingHandler(java.lang.Class<? extends Entity> entityClass,
Render renderer)
Register an entity rendering handler.
|
void |
renderInventoryBlock(RenderBlocks renderer,
Block block,
int metadata,
int modelID) |
boolean |
renderItemAsFull3DBlock(int modelId) |
boolean |
renderWorldBlock(RenderBlocks renderer,
IBlockAccess world,
int x,
int y,
int z,
Block block,
int modelId) |
public static int addNewArmourRendererPrefix(java.lang.String armor)
armor
- public static void registerEntityRenderingHandler(java.lang.Class<? extends Entity> entityClass, Render renderer)
entityClass
- renderer
- public static void registerBlockHandler(ISimpleBlockRenderingHandler handler)
handler
- public static void registerBlockHandler(int renderId, ISimpleBlockRenderingHandler handler)
renderId
- handler
- public static int getNextAvailableRenderId()
@Deprecated public static RenderingRegistry instance()
public boolean renderWorldBlock(RenderBlocks renderer, IBlockAccess world, int x, int y, int z, Block block, int modelId)
public void renderInventoryBlock(RenderBlocks renderer, Block block, int metadata, int modelID)
public boolean renderItemAsFull3DBlock(int modelId)