Class BlockPosArgument
java.lang.Object
com.zenith.command.brigadier.BlockPosArgument
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<Coordinates>, SerializableArgumentType<Coordinates>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypestatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypestatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockPosArgumentblockPos()protected boolean@NonNull CommandParserbooleanstatic BlockPosgetBlockPos(com.mojang.brigadier.context.CommandContext<CommandContext> context, String name) static BlockPosgetLoadedBlockPos(com.mojang.brigadier.context.CommandContext<CommandContext> context, String name) inthashCode()parse(com.mojang.brigadier.StringReader reader) toString()Methods inherited from interface com.mojang.brigadier.arguments.ArgumentType
getExamples, listSuggestions, parseMethods inherited from interface SerializableArgumentType
askServerForSuggestions, commandProperties
-
Field Details
-
ERROR_NOT_LOADED
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_NOT_LOADED -
ERROR_OUT_OF_WORLD
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_OUT_OF_WORLD -
ERROR_OUT_OF_BOUNDS
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_OUT_OF_BOUNDS
-
-
Constructor Details
-
BlockPosArgument
public BlockPosArgument()
-
-
Method Details
-
blockPos
-
getLoadedBlockPos
public static BlockPos getLoadedBlockPos(com.mojang.brigadier.context.CommandContext<CommandContext> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getBlockPos
public static BlockPos getBlockPos(com.mojang.brigadier.context.CommandContext<CommandContext> context, String name) -
parse
public Coordinates parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parsein interfacecom.mojang.brigadier.arguments.ArgumentType<Coordinates>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
commandParser
- Specified by:
commandParserin interfaceSerializableArgumentType<Coordinates>
-
equals
-
canEqual
-
hashCode
-
toString
-