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..f801f30893 100644 --- a/src/main/java/org/spongepowered/api/world/border/WorldBorder.java +++ b/src/main/java/org/spongepowered/api/world/border/WorldBorder.java @@ -26,6 +26,7 @@ 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; @@ -103,15 +104,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 @@ -189,7 +190,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,7 +206,7 @@ interface Builder extends CopyableBuilderIf no {@link #timeToTargetDiameter(Duration)} is set, or it is set + *
If no {@link #timeToTargetDiameter(Ticks)} is set, or it is set * to {@link Duration#ZERO}, then the {@link #initialDiameter(double)} * is ignored and this is the only diameter used.
* @@ -222,10 +223,10 @@ interface Builder extends CopyableBuilder