From 99090b27965c82e030bdc4f356389bf978b77627 Mon Sep 17 00:00:00 2001 From: shedaniel Date: Wed, 4 Nov 2020 22:32:17 +0800 Subject: [PATCH] Deprecate LifecycleEvent client events for now since it is not possible atm --- .../shedaniel/architectury/event/events/LifecycleEvent.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/me/shedaniel/architectury/event/events/LifecycleEvent.java b/common/src/main/java/me/shedaniel/architectury/event/events/LifecycleEvent.java index 4c2926a9..6b9e9e00 100644 --- a/common/src/main/java/me/shedaniel/architectury/event/events/LifecycleEvent.java +++ b/common/src/main/java/me/shedaniel/architectury/event/events/LifecycleEvent.java @@ -28,8 +28,8 @@ import net.minecraft.server.level.ServerLevel; import java.util.logging.Level; public interface LifecycleEvent { - @Environment(EnvType.CLIENT) Event CLIENT_STARTED = EventFactory.createLoop(ClientState.class); - @Environment(EnvType.CLIENT) Event CLIENT_STOPPING = EventFactory.createLoop(ClientState.class); + @Deprecated @Environment(EnvType.CLIENT) Event CLIENT_STARTED = EventFactory.createLoop(ClientState.class); + @Deprecated @Environment(EnvType.CLIENT) Event CLIENT_STOPPING = EventFactory.createLoop(ClientState.class); Event SERVER_STARTING = EventFactory.createLoop(ServerState.class); Event SERVER_STARTED = EventFactory.createLoop(ServerState.class); Event SERVER_STOPPING = EventFactory.createLoop(ServerState.class); @@ -41,6 +41,7 @@ public interface LifecycleEvent { void stateChanged(T instance); } + @Deprecated @Environment(EnvType.CLIENT) interface ClientState extends InstanceState {}