|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcpw.mods.fml.client.registry.RenderingRegistry
public class RenderingRegistry
Constructor Summary | |
---|---|
RenderingRegistry()
|
Method Summary | |
---|---|
static int |
addNewArmourRendererPrefix(String armor)
Add a new armour prefix to the RenderPlayer |
static int |
addTextureOverride(String fileToOverride,
String fileToAdd)
Add a texture override for the given path and return the used index |
static void |
addTextureOverride(String path,
String overlayPath,
int index)
Add a texture override for the given path and index |
static int |
getNextAvailableRenderId()
Get the next available renderId from the block render ID list |
static int |
getUniqueTextureIndex(String path)
Get and reserve a unique texture index for the supplied path |
static RenderingRegistry |
instance()
Deprecated. |
void |
loadEntityRenderers(Map<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(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)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RenderingRegistry()
Method Detail |
---|
public static int addNewArmourRendererPrefix(String armor)
armor
- public static void registerEntityRenderingHandler(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()
public static int addTextureOverride(String fileToOverride, String fileToAdd)
fileToOverride
- fileToAdd
- public static void addTextureOverride(String path, String overlayPath, int index)
path
- overlayPath
- index
- public static int getUniqueTextureIndex(String path)
path
- @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)
public void loadEntityRenderers(Map<Class<? extends Entity>,Render> rendererMap)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |