public class ClientRegistry
extends java.lang.Object
Constructor and Description |
---|
ClientRegistry() |
Modifier and Type | Method and Description |
---|---|
static <T extends TileEntity> |
bindTileEntitySpecialRenderer(java.lang.Class<T> tileEntityClass,
TileEntitySpecialRenderer<? super T> specialRenderer) |
static ResourceLocation |
getEntityShader(java.lang.Class<? extends Entity> entityClass) |
static void |
registerEntityShader(java.lang.Class<? extends Entity> entityClass,
ResourceLocation shader)
Register a shader for an entity.
|
static void |
registerKeyBinding(KeyBinding key) |
static <T extends TileEntity> |
registerTileEntity(java.lang.Class<T> tileEntityClass,
java.lang.String id,
TileEntitySpecialRenderer<? super T> specialRenderer)
Utility method for registering a tile entity and it's renderer at once - generally you should register them separately
|
public static <T extends TileEntity> void registerTileEntity(java.lang.Class<T> tileEntityClass, java.lang.String id, TileEntitySpecialRenderer<? super T> specialRenderer)
tileEntityClass
- id
- specialRenderer
- public static <T extends TileEntity> void bindTileEntitySpecialRenderer(java.lang.Class<T> tileEntityClass, TileEntitySpecialRenderer<? super T> specialRenderer)
public static void registerKeyBinding(KeyBinding key)
public static void registerEntityShader(java.lang.Class<? extends Entity> entityClass, ResourceLocation shader)
entityClass
- shader
- public static ResourceLocation getEntityShader(java.lang.Class<? extends Entity> entityClass)