Package com.ldtteam.structurize.commands
Class ScanCommand
java.lang.Object
com.ldtteam.structurize.commands.AbstractCommand
com.ldtteam.structurize.commands.ScanCommand
Command for opening WindowScanTool or scanning a structure into a file
-
Nested Class Summary
Nested classes/interfaces inherited from class com.ldtteam.structurize.commands.AbstractCommand
AbstractCommand.CommandTree, AbstractCommand.StructurizeCommandExceptionType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAnchor position command argument.static final StringThe filename command argument.static final StringDescriptive string.static final StringThe player name command argument.static final StringPosition 1 command argument.static final StringPosition 2 command argument. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static com.mojang.brigadier.builder.LiteralArgumentBuilder<net.minecraft.commands.CommandSourceStack>build()static @NotNull Stringformat(ScanToolData.Slot slot) Generates a command string for the given parameters.Methods inherited from class com.ldtteam.structurize.commands.AbstractCommand
getEnvironmentType, newArgument, newLiteral, throwSyntaxException, throwSyntaxException
-
Field Details
-
NAME
Descriptive string.- See Also:
-
FILE_NAME
The filename command argument.- See Also:
-
PLAYER_NAME
The player name command argument.- See Also:
-
POS1
Position 1 command argument.- See Also:
-
POS2
Position 2 command argument.- See Also:
-
ANCHOR_POS
Anchor position command argument.- See Also:
-
-
Constructor Details
-
ScanCommand
public ScanCommand()
-
-
Method Details
-
build
protected static com.mojang.brigadier.builder.LiteralArgumentBuilder<net.minecraft.commands.CommandSourceStack> build() -
format
Generates a command string for the given parameters.- Parameters:
slot- The scan slot data.- Returns:
- The command string.
-