Package net.minecraft.server.commands
Class PlaceCommand
java.lang.Object
net.minecraft.server.commands.PlaceCommand
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSourceStack>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
checkLoaded
(ServerLevel p_214544_, ChunkPos p_214545_, ChunkPos p_214546_) static int
placeFeature
(CommandSourceStack p_214576_, Holder.Reference<ConfiguredFeature<?, ?>> p_248822_, BlockPos p_214578_) static int
placeJigsaw
(CommandSourceStack p_214570_, Holder<StructureTemplatePool> p_214571_, ResourceLocation p_214572_, int p_214573_, BlockPos p_214574_) static int
placeStructure
(CommandSourceStack p_214588_, Holder.Reference<Structure> p_251799_, BlockPos p_214590_) static int
placeTemplate
(CommandSourceStack p_214562_, ResourceLocation p_214563_, BlockPos p_214564_, Rotation p_214565_, Mirror p_214566_, float p_214567_, int p_214568_) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_214548_)
-
Field Details
-
ERROR_FEATURE_FAILED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_FEATURE_FAILED -
ERROR_JIGSAW_FAILED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_JIGSAW_FAILED -
ERROR_STRUCTURE_FAILED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_STRUCTURE_FAILED -
ERROR_TEMPLATE_INVALID
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_TEMPLATE_INVALID -
ERROR_TEMPLATE_FAILED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEMPLATE_FAILED -
SUGGEST_TEMPLATES
private static final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSourceStack> SUGGEST_TEMPLATES
-
-
Constructor Details
-
PlaceCommand
public PlaceCommand()
-
-
Method Details
-
register
-
placeFeature
public static int placeFeature(CommandSourceStack p_214576_, Holder.Reference<ConfiguredFeature<?, ?>> p_248822_, BlockPos p_214578_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
placeJigsaw
public static int placeJigsaw(CommandSourceStack p_214570_, Holder<StructureTemplatePool> p_214571_, ResourceLocation p_214572_, int p_214573_, BlockPos p_214574_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
placeStructure
public static int placeStructure(CommandSourceStack p_214588_, Holder.Reference<Structure> p_251799_, BlockPos p_214590_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
placeTemplate
public static int placeTemplate(CommandSourceStack p_214562_, ResourceLocation p_214563_, BlockPos p_214564_, Rotation p_214565_, Mirror p_214566_, float p_214567_, int p_214568_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
checkLoaded
private static void checkLoaded(ServerLevel p_214544_, ChunkPos p_214545_, ChunkPos p_214546_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-