Class PlaceCommand

java.lang.Object
net.minecraft.server.commands.PlaceCommand

public class PlaceCommand extends Object
  • 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

      public static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher)
    • placeFeature

      public static int placeFeature(CommandSourceStack source, Holder.Reference<ConfiguredFeature<?,?>> feature, BlockPos pos) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • placeJigsaw

      public static int placeJigsaw(CommandSourceStack source, Holder<StructureTemplatePool> templatePool, ResourceLocation target, int maxDepth, BlockPos pos) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • placeStructure

      public static int placeStructure(CommandSourceStack source, Holder.Reference<Structure> p_structure, BlockPos pos) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • placeTemplate

      public static int placeTemplate(CommandSourceStack source, ResourceLocation template, BlockPos pos, Rotation rotation, Mirror mirror, float integrity, int seed) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • checkLoaded

      private static void checkLoaded(ServerLevel level, ChunkPos start, ChunkPos end) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException