Package baritone.api.command.datatypes
Interface IDatatypeFor<T>
- All Superinterfaces:
IDatatype
- All Known Implementing Classes:
BlockById,EntityClassById,ForAxis,ForBlockOptionalMeta,ForDirection,ForWaypoints,ItemById,NearbyPlayer
An
IDatatype which acts as a Supplier, 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 TypeMethodDescriptionget(IDatatypeContext ctx) Consumes the desired amount of arguments from the specifiedIDatatypeContext, and then returns the parsed value.Methods inherited from interface baritone.api.command.datatypes.IDatatype
tabComplete
-
Method Details
-
get
Consumes the desired amount of arguments from the specifiedIDatatypeContext, and then returns the parsed value. This method will more than likely return aIllegalArgumentExceptionif the expected input does not conform to a parseable value. As far as aCommandExceptionbeing thrown is concerned, see the note below for specifics.- Parameters:
ctx- The context- Returns:
- The parsed data-type
- Throws:
CommandException- If there was an issue parsing using another type or arguments could not be polled.- See Also:
-