Package cz.jeme.bestium.api.inject
Enum Class EntityInjector.Phase
- All Implemented Interfaces:
Serializable
,Comparable<EntityInjector.Phase>
,Constable
- Enclosing interface:
EntityInjector
Represents the lifecycle phases of the entity injection process.
The injector transitions through these phases in order.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAll phases complete, entities are fully injected.Phase 1: inject into Minecraft internals.Phase 2: inject into Bukkit internals.Registration is closed, all suppliers are resolved and stored.The injector is open to entity registration. -
Method Summary
Modifier and TypeMethodDescriptionstatic EntityInjector.Phase
Returns the enum constant of this class with the specified name.static EntityInjector.Phase[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REGISTRATION
The injector is open to entity registration. Plugins may provide their registrations viaEntityInjector.register(Supplier)
. -
PRE_INJECTION
Registration is closed, all suppliers are resolved and stored. No further registrations are allowed. -
INJECTION_PHASE_1
Phase 1: inject into Minecraft internals. -
INJECTION_PHASE_2
Phase 2: inject into Bukkit internals. -
INJECTED
All phases complete, entities are fully injected.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-