Package baritone.api.command.datatypes
Interface IDatatypePost<T,O>
- All Superinterfaces:
IDatatype
- All Known Implementing Classes:
RelativeBlockPos,RelativeCoordinate,RelativeFile,RelativeGoal,RelativeGoalBlock,RelativeGoalXZ,RelativeGoalYLevel
An
IDatatype which acts as a Function, in essence. The only difference
is that it requires an IDatatypeContext to be provided due to the expectation that
implementations of IDatatype are singletons.-
Method Summary
Modifier and TypeMethodDescriptionapply(IDatatypeContext ctx, O original) Takes the expected input and transforms it based on the value held byoriginal.Methods inherited from interface baritone.api.command.datatypes.IDatatype
tabComplete
-
Method Details
-
apply
Takes 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.- Parameters:
ctx- The datatype contextoriginal- The transformable value- Returns:
- The transformed value
- Throws:
CommandException
-