Enum Class RelativeGoal

java.lang.Object
java.lang.Enum<RelativeGoal>
baritone.api.command.datatypes.RelativeGoal
All Implemented Interfaces:
IDatatype, IDatatypePost<Goal,BetterBlockPos>, Serializable, Comparable<RelativeGoal>, Constable

  • Enum Constant Details

  • Method Details

    • values

      public static RelativeGoal[] 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 RelativeGoal 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
    • apply

      Description copied from interface: IDatatypePost
      Takes the expected input and transforms it based on the value held by original. If original is null, it is expected that the implementation of this method has a case to handle it, such that a NullPointerException will never be thrown as a result.
      Specified by:
      apply in interface IDatatypePost<Goal,BetterBlockPos>
      Parameters:
      ctx - The datatype context
      origin - The transformable value
      Returns:
      The transformed value
      Throws:
      CommandException
    • tabComplete

      Description copied from interface: IDatatype
      Attempts to complete missing or partial input provided through the IArgConsumer} provided by IDatatypeContext.getConsumer() in order to aide the user in executing commands.

      One benefit over datatypes over IArgParsers is that instead of each command trying to guess what values the datatype will accept, or simply not tab completing at all, datatypes that support tab completion can provide accurate information using the same methods used to parse arguments in the first place.

      Specified by:
      tabComplete in interface IDatatype
      Parameters:
      ctx - The argument consumer to tab complete
      Returns:
      A stream representing the strings that can be tab completed. DO NOT INCLUDE SPACES IN ANY STRINGS.
      See Also: