public class ClientRegistry
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<java.lang.Class<? extends Entity>,ResourceLocation> |
entityShaderMap |
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
|
private static java.util.Map<java.lang.Class<? extends Entity>,ResourceLocation> entityShaderMap
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)