Interface ImmersiveMCRegistration
- All Known Implementing Classes:
ImmersiveMCRegistrationImpl
public interface ImmersiveMCRegistration
Contains methods for registering Immersives with ImmersiveMC.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addImmersiveHandlerRegistrationHandler
(Consumer<ImmersiveMCRegistrationEvent<ImmersiveHandler<?>>> registrationHandler) Registers an object which, at some point, ImmersiveMC will call to register yourImmersiveHandler
s.static ImmersiveMCRegistration
instance()
-
Method Details
-
instance
- Returns:
- An ImmersiveMCRegistration instance to access API functions. All details of this object not mentioned in this file are assumed to be an implementation detail, and may change at any time.
-
addImmersiveHandlerRegistrationHandler
void addImmersiveHandlerRegistrationHandler(Consumer<ImmersiveMCRegistrationEvent<ImmersiveHandler<?>>> registrationHandler) throws IllegalStateException Registers an object which, at some point, ImmersiveMC will call to register yourImmersiveHandler
s. The time at which registration occurs is only guaranteed to be some time after mods are initially constructed, so handlers should be added here as early as possible, and be prepared for a lack of registry availability.- Parameters:
registrationHandler
- Your object that will register ImmersiveHandlers when called.- Throws:
IllegalStateException
- This method was called after registration.
-