Enum Class EntityInjector.Phase

java.lang.Object
java.lang.Enum<EntityInjector.Phase>
cz.jeme.bestium.api.inject.EntityInjector.Phase
All Implemented Interfaces:
Serializable, Comparable<EntityInjector.Phase>, Constable
Enclosing interface:
EntityInjector

public static enum EntityInjector.Phase extends Enum<EntityInjector.Phase>
Represents the lifecycle phases of the entity injection process.

The injector transitions through these phases in order.

  • Enum Constant Details

    • REGISTRATION

      public static final EntityInjector.Phase REGISTRATION
      The injector is open to entity registration. Plugins may provide their registrations via EntityInjector.register(Supplier).
    • PRE_INJECTION

      public static final EntityInjector.Phase PRE_INJECTION
      Registration is closed, all suppliers are resolved and stored. No further registrations are allowed.
    • INJECTION_PHASE_1

      public static final EntityInjector.Phase INJECTION_PHASE_1
      Phase 1: inject into Minecraft internals.
    • INJECTION_PHASE_2

      public static final EntityInjector.Phase INJECTION_PHASE_2
      Phase 2: inject into Bukkit internals.
    • INJECTED

      public static final EntityInjector.Phase INJECTED
      All phases complete, entities are fully injected.
  • Method Details

    • values

      public static EntityInjector.Phase[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static EntityInjector.Phase valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null