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 {}