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> |
bindTileEntityRenderer(TileEntityType<T> tileEntityType,
java.util.function.Function<? super TileEntityRendererDispatcher,? extends TileEntityRenderer<? super T>> rendererFactory)
Registers a Tile Entity renderer.
|
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)
Registers a KeyBinding.
|
private static java.util.Map<java.lang.Class<? extends Entity>,ResourceLocation> entityShaderMap
public static <T extends TileEntity> void bindTileEntityRenderer(TileEntityType<T> tileEntityType, java.util.function.Function<? super TileEntityRendererDispatcher,? extends TileEntityRenderer<? super T>> rendererFactory)
FMLClientSetupEvent
.
This method is safe to call during parallel mod loading.public static void registerKeyBinding(KeyBinding key)
FMLClientSetupEvent
.
This method is safe to call during parallel mod loading.public static void registerEntityShader(java.lang.Class<? extends Entity> entityClass, ResourceLocation shader)
FMLClientSetupEvent
.
This method is safe to call during parallel mod loading.public static ResourceLocation getEntityShader(java.lang.Class<? extends Entity> entityClass)