Enum Class PositionArguments.Default

java.lang.Object
java.lang.Enum<PositionArguments.Default>
fr.robie.machineengine.api.paper.PositionArguments.Default
All Implemented Interfaces:
Serializable, Comparable<PositionArguments.Default>, Constable
Enclosing class:
PositionArguments

public static enum PositionArguments.Default extends Enum<PositionArguments.Default>
What a player's position defaults to when no coordinates are given.
  • Enum Constant Details

    • TARGET_BLOCK

      public static final PositionArguments.Default TARGET_BLOCK
      The block the player is looking at (inspection).
    • PLACEMENT

      public static final PositionArguments.Default PLACEMENT
      The block above the one the player is looking at, else the player's feet (placement).
  • Method Details

    • values

      public static PositionArguments.Default[] 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 PositionArguments.Default 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