Class PlaceCommand
java.lang.Object
net.minecraft.server.commands.PlaceCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final SimpleCommandExceptionTypeprivate static final SimpleCommandExceptionTypeprivate static final SimpleCommandExceptionTypeprivate static final SimpleCommandExceptionTypeprivate static final DynamicCommandExceptionTypeprivate static final SuggestionProvider<CommandSourceStack> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidcheckLoaded(ServerLevel level, ChunkPos chunkMin, ChunkPos chunkMax) static intplaceFeature(CommandSourceStack source, Holder.Reference<ConfiguredFeature<?, ?>> featureHolder, BlockPos pos) static intplaceJigsaw(CommandSourceStack source, Holder<StructureTemplatePool> pool, Identifier target, int maxDepth, BlockPos pos) static intplaceStructure(CommandSourceStack source, Holder.Reference<Structure> structureHolder, BlockPos pos) static intplaceTemplate(CommandSourceStack source, Identifier template, BlockPos pos, Rotation rotation, Mirror mirror, float integrity, int seed, boolean strict) static voidregister(CommandDispatcher<CommandSourceStack> dispatcher)
-
Field Details
-
ERROR_FEATURE_FAILED
-
ERROR_JIGSAW_FAILED
-
ERROR_STRUCTURE_FAILED
-
ERROR_TEMPLATE_INVALID
-
ERROR_TEMPLATE_FAILED
-
SUGGEST_TEMPLATES
-
-
Constructor Details
-
PlaceCommand
public PlaceCommand()
-
-
Method Details
-
register
-
placeFeature
public static int placeFeature(CommandSourceStack source, Holder.Reference<ConfiguredFeature<?, ?>> featureHolder, BlockPos pos) throws CommandSyntaxException- Throws:
CommandSyntaxException
-
placeJigsaw
public static int placeJigsaw(CommandSourceStack source, Holder<StructureTemplatePool> pool, Identifier target, int maxDepth, BlockPos pos) throws CommandSyntaxException - Throws:
CommandSyntaxException
-
placeStructure
public static int placeStructure(CommandSourceStack source, Holder.Reference<Structure> structureHolder, BlockPos pos) throws CommandSyntaxException - Throws:
CommandSyntaxException
-
placeTemplate
public static int placeTemplate(CommandSourceStack source, Identifier template, BlockPos pos, Rotation rotation, Mirror mirror, float integrity, int seed, boolean strict) throws CommandSyntaxException - Throws:
CommandSyntaxException
-
checkLoaded
private static void checkLoaded(ServerLevel level, ChunkPos chunkMin, ChunkPos chunkMax) throws CommandSyntaxException - Throws:
CommandSyntaxException
-