Class CommonEvents.Server

java.lang.Object
net.rebel459.unified.impl.core.CommonEvents.Server
Enclosing class:
CommonEvents

public static class CommonEvents.Server extends Object
  • Field Details

    • DATAPACK_RELOAD_ENTRIES

      public static final List<Consumer<net.minecraft.server.MinecraftServer>> DATAPACK_RELOAD_ENTRIES
    • SERVER_STARTED_LISTENERS

      public static final List<Consumer<net.minecraft.server.MinecraftServer>> SERVER_STARTED_LISTENERS
    • SERVER_STOPPED_LISTENERS

      public static final List<Consumer<net.minecraft.server.MinecraftServer>> SERVER_STOPPED_LISTENERS
    • TICK_LISTENERS

      public static final EnumMap<EventTiming, List<Consumer<net.minecraft.server.MinecraftServer>>> TICK_LISTENERS
    • LEVEL_TICK_LISTENERS

      public static final EnumMap<EventTiming, List<Consumer<net.minecraft.server.level.ServerLevel>>> LEVEL_TICK_LISTENERS
    • LEVEL_LOADED_LISTENERS

      public static final List<Consumer<net.minecraft.server.level.ServerLevel>> LEVEL_LOADED_LISTENERS
    • LEVEL_UNLOADED_LISTENERS

      public static final List<Consumer<net.minecraft.server.level.ServerLevel>> LEVEL_UNLOADED_LISTENERS
  • Method Details

    • passOnDatapackLoad

      public static void passOnDatapackLoad(net.minecraft.server.MinecraftServer server)
    • passOnStart

      public static void passOnStart(net.minecraft.server.MinecraftServer server)
    • passOnStop

      public static void passOnStop(net.minecraft.server.MinecraftServer server)
    • passOnTick

      public static void passOnTick(EventTiming type, net.minecraft.server.MinecraftServer server)
    • passOnLevelTick

      public static void passOnLevelTick(EventTiming type, net.minecraft.server.level.ServerLevel level)
    • passOnLevelLoad

      public static void passOnLevelLoad(net.minecraft.server.level.ServerLevel level)
    • passOnLevelUnload

      public static void passOnLevelUnload(net.minecraft.server.level.ServerLevel level)