Class WorldBorderCommand

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

public class WorldBorderCommand extends Object
  • Field Details

    • ERROR_SAME_CENTER

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_SAME_CENTER
    • ERROR_SAME_SIZE

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_SAME_SIZE
    • ERROR_TOO_SMALL

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TOO_SMALL
    • ERROR_TOO_BIG

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TOO_BIG
    • ERROR_TOO_FAR_OUT

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TOO_FAR_OUT
    • ERROR_SAME_WARNING_TIME

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_SAME_WARNING_TIME
    • ERROR_SAME_WARNING_DISTANCE

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_SAME_WARNING_DISTANCE
    • ERROR_SAME_DAMAGE_BUFFER

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_SAME_DAMAGE_BUFFER
    • ERROR_SAME_DAMAGE_AMOUNT

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_SAME_DAMAGE_AMOUNT
  • Constructor Details

    • WorldBorderCommand

      public WorldBorderCommand()
  • Method Details

    • register

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

      private static int setDamageBuffer(CommandSourceStack source, float distance) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • setDamageAmount

      private static int setDamageAmount(CommandSourceStack source, float damagePerBlock) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • setWarningTime

      private static int setWarningTime(CommandSourceStack source, int time) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • setWarningDistance

      private static int setWarningDistance(CommandSourceStack source, int distance) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • getSize

      private static int getSize(CommandSourceStack source)
    • setCenter

      private static int setCenter(CommandSourceStack source, Vec2 pos) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • setSize

      private static int setSize(CommandSourceStack source, double newSize, long time) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException