mirror of
https://github.com/architectury/architectury-api.git
synced 2026-04-02 05:27:42 -05:00
Add LifecycleEvent.SETUP for manipulating things after normal init (#148)
* Add LifecycleEvent.SETUP for manipulating things after normal initialization * Improve javadocs * Fix broken english * Update common/src/main/java/dev/architectury/event/events/common/LifecycleEvent.java Co-authored-by: BasiqueEvangelist <basiqueevangelist@yandex.ru>
This commit is contained in:
@@ -48,6 +48,10 @@ public interface ClientLifecycleEvent {
|
||||
* Invoked once client setup has begun.
|
||||
* <p> This happens during {@code FMLClientSetupEvent} on Forge,
|
||||
* or when Architectury API's client entrypoint initialises on Fabric.
|
||||
* <p>
|
||||
* Registries should have been initialised by this point, but there
|
||||
* are no such guarantees, as you can modify the registry beyond this point
|
||||
* on non-Forge environments.
|
||||
*/
|
||||
Event<ClientState> CLIENT_SETUP = EventFactory.createLoop();
|
||||
|
||||
|
||||
@@ -88,6 +88,16 @@ public interface LifecycleEvent {
|
||||
* @see ServerLevelState#act(Level)
|
||||
*/
|
||||
Event<ServerLevelState> SERVER_LEVEL_SAVE = EventFactory.createLoop();
|
||||
/**
|
||||
* Invoked once common setup has begun.
|
||||
* <p> This happens during {@code FMLCommonSetupEvent} on Forge,
|
||||
* or when Architectury API's client/server entrypoint initialises on Fabric.
|
||||
* <p>
|
||||
* Registries should have been initialised by this point, but there
|
||||
* are no such guarantees, as you can modify the registry beyond this point
|
||||
* on non-Forge environments.
|
||||
*/
|
||||
Event<Runnable> SETUP = EventFactory.createLoop();
|
||||
|
||||
interface InstanceState<T> {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user