Package baritone.api.command.datatypes
Enum Class RelativeGoal
- All Implemented Interfaces:
IDatatype,IDatatypePost<Goal,,BetterBlockPos> Serializable,Comparable<RelativeGoal>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionapply(IDatatypeContext ctx, BetterBlockPos origin) Takes the expected input and transforms it based on the value held byoriginal.Attempts to complete missing or partial input provided through theIArgConsumer} provided byIDatatypeContext.getConsumer()in order to aide the user in executing commands.static RelativeGoalReturns the enum constant of this class with the specified name.static RelativeGoal[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
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
-
apply
Description copied from interface:IDatatypePostTakes the expected input and transforms it based on the value held byoriginal. Iforiginalis null, it is expected that the implementation of this method has a case to handle it, such that aNullPointerExceptionwill never be thrown as a result.- Specified by:
applyin interfaceIDatatypePost<Goal,BetterBlockPos> - Parameters:
ctx- The datatype contextorigin- The transformable value- Returns:
- The transformed value
- Throws:
CommandException
-
tabComplete
Description copied from interface:IDatatypeAttempts to complete missing or partial input provided through theIArgConsumer} provided byIDatatypeContext.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:
tabCompletein interfaceIDatatype- 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:
-