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.SimpleCommandExceptionTypeCENTER_FAILED_EXCEPTIONprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeDAMAGE_AMOUNT_FAILED_EXCEPTIONprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeDAMAGE_BUFFER_FAILED_EXCEPTIONprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeSET_FAILED_BIG_EXCEPTIONprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeSET_FAILED_NO_CHANGE_EXCEPTIONprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeSET_FAILED_SMALL_EXCEPTIONprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeWARNING_DISTANCE_FAILED_EXCEPTIONprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeWARNING_TIME_FAILED_EXCEPTION -
Constructor Summary
Constructors Constructor Description WorldBorderCommand() -
Method Summary
Modifier and Type Method Description private static intexecuteBuffer(ServerCommandSource source, float distance)private static intexecuteCenter(ServerCommandSource source, Vec2f pos)private static intexecuteDamage(ServerCommandSource source, float damagePerBlock)private static intexecuteGet(ServerCommandSource source)private static intexecuteSet(ServerCommandSource source, double distance, long time)private static intexecuteWarningDistance(ServerCommandSource source, int distance)private static intexecuteWarningTime(ServerCommandSource source, int time)static voidregister(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
-