Implement ClientLifecycleEvent on Forge (+ testmod)

Bump version to 1.29

Signed-off-by: Max <maxh2709@gmail.com>
This commit is contained in:
Max
2022-01-31 23:20:50 +08:00
committed by shedaniel
parent c8470cc109
commit 8ff46417b1
5 changed files with 50 additions and 5 deletions

View File

@@ -30,14 +30,14 @@ import net.minecraft.client.multiplayer.ClientLevel;
@Environment(EnvType.CLIENT)
public interface ClientLifecycleEvent {
/**
* Invoked when client has been initialised, not available in forge.
* Invoked when client has been initialised.
* Equivalent to Fabric's {@code ClientLifecycleEvents.CLIENT_STARTING}.
*/
@Deprecated
Event<ClientState> CLIENT_STARTED = EventFactory.createLoop();
/**
* Invoked when client is stopping, not available in forge.
* Invoked when client is stopping.
* Equivalent to Fabric's {@code ClientLifecycleEvents.CLIENT_STOPPING}.
*/
@Deprecated
Event<ClientState> CLIENT_STOPPING = EventFactory.createLoop();
/**
* Invoked after a world is loaded only on the client-side.