Package net.minecraft.server.commands
Class WorldBorderCommand
java.lang.Object
net.minecraft.server.commands.WorldBorderCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static intgetSize(CommandSourceStack pSource) static voidregister(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> pDispatcher) private static intsetCenter(CommandSourceStack pSource, Vec2 pPos) private static intsetDamageAmount(CommandSourceStack pSource, float pDamagePerBlock) private static intsetDamageBuffer(CommandSourceStack pSource, float pDistance) private static intsetSize(CommandSourceStack pSource, double pNewSize, long pTime) private static intsetWarningDistance(CommandSourceStack pSource, int pDistance) private static intsetWarningTime(CommandSourceStack pSource, int pTime)
-
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
-
setDamageBuffer
private static int setDamageBuffer(CommandSourceStack pSource, float pDistance) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setDamageAmount
private static int setDamageAmount(CommandSourceStack pSource, float pDamagePerBlock) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setWarningTime
private static int setWarningTime(CommandSourceStack pSource, int pTime) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setWarningDistance
private static int setWarningDistance(CommandSourceStack pSource, int pDistance) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getSize
-
setCenter
private static int setCenter(CommandSourceStack pSource, Vec2 pPos) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setSize
private static int setSize(CommandSourceStack pSource, double pNewSize, long pTime) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-