Class RenderingRegistry
java.lang.Object
net.minecraftforge.fml.client.registry.RenderingRegistry
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map<EntityType<? extends Entity>,
IRenderFactory<? extends Entity>> private static final RenderingRegistry
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
INSTANCE
-
entityRenderers
-
-
Constructor Details
-
RenderingRegistry
public RenderingRegistry()
-
-
Method Details
-
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
-
register
private static <T extends Entity> void register(EntityRendererManager manager, EntityType<T> entityType, IRenderFactory<?> renderFactory)
-