Class ServerEventPriority

java.lang.Object
icu.suc.mc.serverevents.ServerEventPriority

public final class ServerEventPriority extends Object

Provides a legacy event priority abstraction.

This class exists primarily for compatibility and developer familiarity, mirroring the conventional event priority model used in older APIs such as Bukkit. It maps human-readable priority levels to Identifier-based Fabric event phases.

The defined priorities are actively applied to events exposed under ServerEvents.*, where they are used as phase identifiers during event registration and invocation.

Outside of ServerEvents.*, these priorities do not have intrinsic meaning unless explicitly integrated into the event dispatching logic.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.resources.Identifier
    Executed after NORMAL.
    static final net.minecraft.resources.Identifier
    Executed after HIGH.
    static final net.minecraft.resources.Identifier
    Executed after LOWEST.
    static final net.minecraft.resources.Identifier
    Executed first.
    static final net.minecraft.resources.Identifier
    Executed after HIGHEST.
    static final net.minecraft.resources.Identifier
    Executed after LOW.
    static final net.minecraft.resources.Identifier[]
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.resources.Identifier
    getById(int id)
     
    static net.minecraft.resources.Identifier
    register(int id, net.minecraft.resources.Identifier identifier)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • PRIORITIES

      @Internal public static final net.minecraft.resources.Identifier[] PRIORITIES
    • LOWEST

      public static final net.minecraft.resources.Identifier LOWEST
      Executed first.
    • LOW

      public static final net.minecraft.resources.Identifier LOW
      Executed after LOWEST.
    • NORMAL

      public static final net.minecraft.resources.Identifier NORMAL
      Executed after LOW. Default priority.
      See Also:
      • Event.DEFAULT_PHASE
    • HIGH

      public static final net.minecraft.resources.Identifier HIGH
      Executed after NORMAL.
    • HIGHEST

      public static final net.minecraft.resources.Identifier HIGHEST
      Executed after HIGH.
    • MONITOR

      public static final net.minecraft.resources.Identifier MONITOR
      Executed after HIGHEST. For observation only.
  • Method Details

    • register

      @Internal public static net.minecraft.resources.Identifier register(int id, net.minecraft.resources.Identifier identifier)
    • getById

      public static net.minecraft.resources.Identifier getById(int id)