public class RenderingRegistry
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Map<EntityType<? extends Entity>,IRenderFactory<? extends Entity>> |
entityRenderers |
private static RenderingRegistry |
INSTANCE |
Constructor and Description |
---|
RenderingRegistry() |
Modifier and Type | Method and Description |
---|---|
static void |
loadEntityRenderers(EntityRendererManager manager) |
private static <T extends Entity> |
register(EntityRendererManager manager,
EntityType<T> entityType,
IRenderFactory<?> renderFactory) |
static <T extends Entity> |
registerEntityRenderingHandler(EntityType<T> entityClass,
IRenderFactory<? super T> renderFactory)
Register an entity rendering handler.
|
private static final RenderingRegistry INSTANCE
private final java.util.Map<EntityType<? extends Entity>,IRenderFactory<? extends Entity>> entityRenderers
public static <T extends Entity> void registerEntityRenderingHandler(EntityType<T> entityClass, IRenderFactory<? super T> renderFactory)
FMLClientSetupEvent
.
This method is safe to call during parallel mod loading.public static void loadEntityRenderers(EntityRendererManager manager)
private static <T extends Entity> void register(EntityRendererManager manager, EntityType<T> entityType, IRenderFactory<?> renderFactory)