public class WorldBorderCommand
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
CENTER_NO_CHANGE |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
DAMAGE_AMOUNT_NO_CHANGE |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
DAMAGE_BUFFER_NO_CHANGE |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
SIZE_NO_CHANGE |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
SIZE_TOO_BIG |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
SIZE_TOO_SMALL |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
WARNING_DISTANCE_NO_CHANGE |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
WARNING_TIME_NO_CHANGE |
Constructor and Description |
---|
WorldBorderCommand() |
Modifier and Type | Method and Description |
---|---|
private static int |
getSize(CommandSource source) |
static void |
register(com.mojang.brigadier.CommandDispatcher<CommandSource> dispatcher) |
private static int |
setCenter(CommandSource source,
Vec2f pos) |
private static int |
setDamageAmount(CommandSource source,
float damagePerBlock) |
private static int |
setDamageBuffer(CommandSource source,
float distance) |
private static int |
setSize(CommandSource source,
double newSize,
long time) |
private static int |
setWarningDistance(CommandSource source,
int distance) |
private static int |
setWarningTime(CommandSource source,
int time) |
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType CENTER_NO_CHANGE
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType SIZE_NO_CHANGE
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType SIZE_TOO_SMALL
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType SIZE_TOO_BIG
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType WARNING_TIME_NO_CHANGE
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType WARNING_DISTANCE_NO_CHANGE
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType DAMAGE_BUFFER_NO_CHANGE
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType DAMAGE_AMOUNT_NO_CHANGE
public static void register(com.mojang.brigadier.CommandDispatcher<CommandSource> dispatcher)
private static int setDamageBuffer(CommandSource source, float distance) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int setDamageAmount(CommandSource source, float damagePerBlock) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int setWarningTime(CommandSource source, int time) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int setWarningDistance(CommandSource source, int distance) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int getSize(CommandSource source)
private static int setCenter(CommandSource source, Vec2f pos) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int setSize(CommandSource source, double newSize, long time) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException