Enum Class JoinMode
- All Implemented Interfaces:
Serializable,Comparable<JoinMode>,Constable
CreatePlayer.Command.
Serialized on the wire by name, so the constant names are part of the protocol
contract and must not be renamed without a RuntimeProtocol.VERSION bump.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDrive the full vanilla login pipeline over a real loopback TCP connection.Spawn the synthetic player directly through the internal, reflective spawn path. -
Method Summary
Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
FULL_LOGIN
Drive the full vanilla login pipeline over a real loopback TCP connection.The join fires the real
AsyncPlayerPreLoginEvent,PlayerLoginEvent, andPlayerJoinEvent, traverses the 1.20.2+ configuration phase, and lets the server derive the offline UUID from the player name. Because it is a genuine login, it can be denied by whitelist, ban, or a full server; such denials are surfaced as typed errors. Theuuidfield ofCreatePlayer.Commandmust benullunder this mode. -
LEGACY_SPAWN
Spawn the synthetic player directly through the internal, reflective spawn path.This is the historical fast path: it fires
PlayerJoinEventbut skips the pre-login, login, and configuration phases. The caller-supplieduuidis honored. Kept as an uncontracted internal shortcut for LightKeeper's own fast tests.
-
-
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
-