Class WorldBorderCommand

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

public class WorldBorderCommand
extends Object
  • Field Details

    • CENTER_FAILED_EXCEPTION

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType CENTER_FAILED_EXCEPTION
    • SET_FAILED_NO_CHANGE_EXCEPTION

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType SET_FAILED_NO_CHANGE_EXCEPTION
    • SET_FAILED_SMALL_EXCEPTION

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType SET_FAILED_SMALL_EXCEPTION
    • SET_FAILED_BIG_EXCEPTION

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType SET_FAILED_BIG_EXCEPTION
    • WARNING_TIME_FAILED_EXCEPTION

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType WARNING_TIME_FAILED_EXCEPTION
    • WARNING_DISTANCE_FAILED_EXCEPTION

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType WARNING_DISTANCE_FAILED_EXCEPTION
    • DAMAGE_BUFFER_FAILED_EXCEPTION

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType DAMAGE_BUFFER_FAILED_EXCEPTION
    • DAMAGE_AMOUNT_FAILED_EXCEPTION

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

    • WorldBorderCommand

      public WorldBorderCommand()
  • Method Details

    • register

      public static void register​(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
    • executeBuffer

      private static int executeBuffer​(ServerCommandSource source, float distance) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • executeDamage

      private static int executeDamage​(ServerCommandSource source, float damagePerBlock) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • executeWarningTime

      private static int executeWarningTime​(ServerCommandSource source, int time) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • executeWarningDistance

      private static int executeWarningDistance​(ServerCommandSource source, int distance) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • executeGet

      private static int executeGet​(ServerCommandSource source)
    • executeCenter

      private static int executeCenter​(ServerCommandSource source, Vec2f pos) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • executeSet

      private static int executeSet​(ServerCommandSource source, double distance, long time) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException