Enum Class OffsetProviderContext.ProvideReason
java.lang.Object
java.lang.Enum<OffsetProviderContext.ProvideReason>
com.jtprince.coordinateoffset.provider.OffsetProviderContext.ProvideReason
- All Implemented Interfaces:
Serializable,Comparable<OffsetProviderContext.ProvideReason>,Constable
- Enclosing class:
OffsetProviderContext
public static enum OffsetProviderContext.ProvideReason
extends Enum<OffsetProviderContext.ProvideReason>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA player's offset is being regenerated immediately because someone executed a command (such as/offset regenerate).A player's offset is being set immediately because someone executed a command (such as/offset set).A player's offset is being generated because they died and are about to respawn.A player's offset is being generated because they are joining the server.A player's offset is being generated immediately because a third-party plugin requested it.A player's offset is being set immediately because a third-party plugin called a method to set it.A player's offset is being generated because they are teleporting within the same world.A player's offset is being generated because they are changing worlds, either through a Nether portal, End portal, or any teleport across worlds. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static OffsetProviderContext.ProvideReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
JOIN
A player's offset is being generated because they are joining the server. They may or may not have played on the server previously. -
DEATH_RESPAWN
A player's offset is being generated because they died and are about to respawn. -
WORLD_CHANGE
A player's offset is being generated because they are changing worlds, either through a Nether portal, End portal, or any teleport across worlds. -
TELEPORT
A player's offset is being generated because they are teleporting within the same world. -
COMMAND_REGENERATE
A player's offset is being regenerated immediately because someone executed a command (such as/offset regenerate). -
COMMAND_SET
A player's offset is being set immediately because someone executed a command (such as/offset set). Note that offset providers are never called to provide an offset for this reason since the offset is predetermined by the command.- See Also:
-
PLUGIN_REGENERATE
A player's offset is being generated immediately because a third-party plugin requested it. -
PLUGIN_SET
A player's offset is being set immediately because a third-party plugin called a method to set it. Note that offset providers are never called to provide an offset for this reason since the offset is predetermined by the plugin.
-
-
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
-