Interface ColumnPositionResolver
- All Superinterfaces:
ArgumentResolver<ColumnPosition>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public non-sealed interface ColumnPositionResolver
extends ArgumentResolver<ColumnPosition>
Resolves a block column, absolute or relative (
~).- Since:
- 0.1.0
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic ColumnPositioncolumnPosition(com.mojang.brigadier.context.CommandContext<CommandSource> context, String name) Returns the column argumentname, resolved for the source ofcontext.Methods inherited from interface ArgumentResolver
resolve
-
Method Details
-
columnPosition
static ColumnPosition columnPosition(com.mojang.brigadier.context.CommandContext<CommandSource> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException Returns the column argumentname, resolved for the source ofcontext.- Parameters:
context- the command contextname- the argument name- Returns:
- the column argument
name, resolved for the source ofcontext - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- if it can't be resolved for the source- Since:
- 0.1.0
-