public class RenderingRegistry
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.Class<? extends Entity>,IRenderFactory<? extends Entity>> |
entityRenderers |
private java.util.Map<java.lang.Class<? extends Entity>,Render<? extends Entity>> |
entityRenderersOld |
private static RenderingRegistry |
INSTANCE |
Constructor and Description |
---|
RenderingRegistry() |
Modifier and Type | Method and Description |
---|---|
static void |
loadEntityRenderers(java.util.Map<java.lang.Class<? extends Entity>,Render<? extends Entity>> entityRenderMap) |
static void |
loadEntityRenderers(RenderManager manager,
java.util.Map<java.lang.Class<? extends Entity>,Render<? extends Entity>> renderMap) |
private static <T extends Entity> |
register(RenderManager manager,
java.util.Map<java.lang.Class<? extends Entity>,Render<? extends Entity>> renderMap,
java.lang.Class<T> entityClass,
IRenderFactory<?> renderFactory) |
static void |
registerEntityRenderingHandler(java.lang.Class<? extends Entity> entityClass,
Render<? extends Entity> renderer)
Deprecated.
use the factory version during Preinitialization.
TODO Will be removed in 1.11.
|
static <T extends Entity> |
registerEntityRenderingHandler(java.lang.Class<T> entityClass,
IRenderFactory<? super T> renderFactory)
Register an entity rendering handler.
|
private static final RenderingRegistry INSTANCE
private java.util.Map<java.lang.Class<? extends Entity>,IRenderFactory<? extends Entity>> entityRenderers
@Deprecated public static void registerEntityRenderingHandler(java.lang.Class<? extends Entity> entityClass, Render<? extends Entity> renderer)
public static void loadEntityRenderers(java.util.Map<java.lang.Class<? extends Entity>,Render<? extends Entity>> entityRenderMap)
public static <T extends Entity> void registerEntityRenderingHandler(java.lang.Class<T> entityClass, IRenderFactory<? super T> renderFactory)
public static void loadEntityRenderers(RenderManager manager, java.util.Map<java.lang.Class<? extends Entity>,Render<? extends Entity>> renderMap)
private static <T extends Entity> void register(RenderManager manager, java.util.Map<java.lang.Class<? extends Entity>,Render<? extends Entity>> renderMap, java.lang.Class<T> entityClass, IRenderFactory<?> renderFactory)