diff --git a/src/main/java/org/spongepowered/api/world/border/WorldBorder.java b/src/main/java/org/spongepowered/api/world/border/WorldBorder.java index 0d4ed8931e..a0715dd641 100644 --- a/src/main/java/org/spongepowered/api/world/border/WorldBorder.java +++ b/src/main/java/org/spongepowered/api/world/border/WorldBorder.java @@ -26,9 +26,9 @@ import org.spongepowered.api.Sponge; import org.spongepowered.api.util.CopyableBuilder; +import org.spongepowered.api.util.Ticks; import org.spongepowered.math.vector.Vector2d; -import java.time.Duration; /** * A world border is a square boundary, extending through the entire y-axis. @@ -103,15 +103,15 @@ default Builder toBuilder() { double targetDiameter(); /** - * Gets the time remaining until the world border stops expanding or + * Gets the remaining transition time in ticks until the world border stops expanding or * contracting to the {@link #targetDiameter()}. * *
If {@link #diameter()} and {@link #targetDiameter()} are the same, - * this will be {@link Duration#ZERO}.
+ * this will be {@link Ticks#zero()}. * - * @return The time remaining + * @return The ticks remaining */ - Duration timeUntilTargetDiameter(); + Ticks timeUntilTargetDiameter(); /** * Gets the distance a player may be outside the world border before taking @@ -131,14 +131,14 @@ default Builder toBuilder() { /** * Gets the time when a contracting world border will warn a player for whom - * the world border will reach in {@code time} seconds. + * the world border will reach in {@code time} ticks. * *In Minecraft, the warning is displayed in the form of a reddish * tint.
* * @return The warning time */ - Duration warningTime(); + Ticks warningTime(); /** * Gets the distance when a contracting world border will warn a player for @@ -189,7 +189,7 @@ interface Builder extends CopyableBuilderIf this differs from the the value supplied to * {@link #targetDiameter(double)}, then the border size starts at the * diameter specified here, growing or shrinking at a constant speed for - * the time provided in {@link #timeToTargetDiameter(Duration)} where it + * the time provided in {@link #timeToTargetDiameter(Ticks)} where it * will stop at the supplied target. If the supplied time is zero or not * given, then this value is ignored and the target diameter is used.
* @@ -205,8 +205,8 @@ interface Builder extends CopyableBuilderIf no {@link #timeToTargetDiameter(Duration)} is set, or it is set - * to {@link Duration#ZERO}, then the {@link #initialDiameter(double)} + *
If no {@link #timeToTargetDiameter(Ticks)} is set, or it is set + * to {@link Ticks#zero()}, then the {@link #initialDiameter(double)} * is ignored and this is the only diameter used.
* *If this is set but {@link #initialDiameter(double)} has not, then
@@ -222,10 +222,10 @@ interface Builder extends CopyableBuilder