Class RenderingRegistry
- java.lang.Object
-
- net.minecraftforge.fml.client.registry.RenderingRegistry
-
public class RenderingRegistry extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<EntityType<? extends Entity>,IRenderFactory<? extends Entity>>
entityRenderers
private static RenderingRegistry
INSTANCE
-
Constructor Summary
Constructors Constructor Description RenderingRegistry()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
loadEntityRenderers(EntityRendererManager manager)
private static <T extends Entity>
voidregister(EntityRendererManager manager, EntityType<T> entityType, IRenderFactory<?> renderFactory)
static <T extends Entity>
voidregisterEntityRenderingHandler(EntityType<T> entityClass, IRenderFactory<? super T> renderFactory)
Register an entity rendering handler.
-
-
-
Field Detail
-
INSTANCE
private static final RenderingRegistry INSTANCE
-
entityRenderers
private final java.util.Map<EntityType<? extends Entity>,IRenderFactory<? extends Entity>> entityRenderers
-
-
Method Detail
-
registerEntityRenderingHandler
public static <T extends Entity> void registerEntityRenderingHandler(EntityType<T> entityClass, IRenderFactory<? super T> renderFactory)
Register an entity rendering handler. This will, after mod initialization, be inserted into the main render map for entities. Call this duringFMLClientSetupEvent
. This method is safe to call during parallel mod loading.
-
loadEntityRenderers
public static void loadEntityRenderers(EntityRendererManager manager)
-
register
private static <T extends Entity> void register(EntityRendererManager manager, EntityType<T> entityType, IRenderFactory<?> renderFactory)
-
-