Enum Class PassthroughMode
- All Implemented Interfaces:
Serializable
,Comparable<PassthroughMode>
,Constable
Specifies which type of packet should be passed to the server,
when a player interacts with a map.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAll packets will be passed to the server, interaction events will be fired.All packets will be cancelled, no interaction events will be fired.Only the swing animation will be visible to other players, no interaction events are fired. -
Method Summary
Modifier and TypeMethodDescriptionstatic PassthroughMode
Returns the enum constant of this class with the specified name.static PassthroughMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
All packets will be cancelled, no interaction events will be fired. -
ONLY_ANIMATION
Only the swing animation will be visible to other players, no interaction events are fired.
WARNING: MapEngine will trigger the swing animation on its own, otherwise interaction events will be fired by bukkit. -
ALL
All packets will be passed to the server, interaction events will be fired.
-
-
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
-