Enum Class PassthroughMode

java.lang.Object
java.lang.Enum<PassthroughMode>
de.pianoman911.mapengine.api.util.PassthroughMode
All Implemented Interfaces:
Serializable, Comparable<PassthroughMode>, Constable

public enum PassthroughMode extends Enum<PassthroughMode>
Specifies which type of packet should be passed to the server, when a player interacts with a map.
  • Enum Constant Details

    • NONE

      public static final PassthroughMode NONE
      All packets will be cancelled, no interaction events will be fired.
    • ONLY_ANIMATION

      public static final PassthroughMode 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

      public static final PassthroughMode ALL
      All packets will be passed to the server, interaction events will be fired.
  • Method Details

    • values

      public static PassthroughMode[] 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 PassthroughMode 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