Package net.minecraft.server.command
Class WorldBorderCommand
java.lang.Object
net.minecraft.server.command.WorldBorderCommand
public class WorldBorderCommand extends Object
-
Field Summary
Fields Modifier and Type Field Description private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
CENTER_FAILED_EXCEPTION
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
DAMAGE_AMOUNT_FAILED_EXCEPTION
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
DAMAGE_BUFFER_FAILED_EXCEPTION
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
SET_FAILED_BIG_EXCEPTION
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
SET_FAILED_NO_CHANGE_EXCEPTION
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
SET_FAILED_SMALL_EXCEPTION
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
WARNING_DISTANCE_FAILED_EXCEPTION
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
WARNING_TIME_FAILED_EXCEPTION
-
Constructor Summary
Constructors Constructor Description WorldBorderCommand()
-
Method Summary
Modifier and Type Method Description private static int
executeBuffer(ServerCommandSource source, float distance)
private static int
executeCenter(ServerCommandSource source, Vec2f pos)
private static int
executeDamage(ServerCommandSource source, float damagePerBlock)
private static int
executeGet(ServerCommandSource source)
private static int
executeSet(ServerCommandSource source, double distance, long time)
private static int
executeWarningDistance(ServerCommandSource source, int distance)
private static int
executeWarningTime(ServerCommandSource source, int time)
static void
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
-
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
-
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
-