Class WorldBorderCommand
java.lang.Object
net.minecraft.server.commands.WorldBorderCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final SimpleCommandExceptionTypeprivate static final SimpleCommandExceptionTypeprivate static final SimpleCommandExceptionTypeprivate static final SimpleCommandExceptionTypeprivate static final SimpleCommandExceptionTypeprivate static final SimpleCommandExceptionTypeprivate static final SimpleCommandExceptionTypeprivate static final SimpleCommandExceptionTypeprivate static final SimpleCommandExceptionType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringformatTicksToSeconds(long ticks) private static intgetSize(CommandSourceStack source) static voidregister(CommandDispatcher<CommandSourceStack> dispatcher) private static intsetCenter(CommandSourceStack source, Vec2 center) private static intsetDamageAmount(CommandSourceStack source, float damagePerBlock) private static intsetDamageBuffer(CommandSourceStack source, float distance) private static intsetSize(CommandSourceStack source, double distance, long ticks) private static intsetWarningDistance(CommandSourceStack source, int distance) private static intsetWarningTime(CommandSourceStack source, int ticks)
-
Field Details
-
ERROR_SAME_CENTER
-
ERROR_SAME_SIZE
-
ERROR_TOO_SMALL
-
ERROR_TOO_BIG
-
ERROR_TOO_FAR_OUT
-
ERROR_SAME_WARNING_TIME
-
ERROR_SAME_WARNING_DISTANCE
-
ERROR_SAME_DAMAGE_BUFFER
-
ERROR_SAME_DAMAGE_AMOUNT
-
-
Constructor Details
-
WorldBorderCommand
public WorldBorderCommand()
-
-
Method Details
-
register
-
setDamageBuffer
private static int setDamageBuffer(CommandSourceStack source, float distance) throws CommandSyntaxException - Throws:
CommandSyntaxException
-
setDamageAmount
private static int setDamageAmount(CommandSourceStack source, float damagePerBlock) throws CommandSyntaxException - Throws:
CommandSyntaxException
-
setWarningTime
private static int setWarningTime(CommandSourceStack source, int ticks) throws CommandSyntaxException - Throws:
CommandSyntaxException
-
setWarningDistance
private static int setWarningDistance(CommandSourceStack source, int distance) throws CommandSyntaxException - Throws:
CommandSyntaxException
-
getSize
-
setCenter
- Throws:
CommandSyntaxException
-
setSize
private static int setSize(CommandSourceStack source, double distance, long ticks) throws CommandSyntaxException - Throws:
CommandSyntaxException
-
formatTicksToSeconds
-