Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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()}.
*
* <p>If {@link #diameter()} and {@link #targetDiameter()} are the same,
* this will be {@link Duration#ZERO}.</p>
* this will be {@link Ticks#zero()}.</p>
*
* @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
Expand Down Expand Up @@ -189,7 +190,7 @@ interface Builder extends CopyableBuilder<WorldBorder, Builder>, org.spongepower
* <p>If 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.</p>
*
Expand All @@ -205,7 +206,7 @@ interface Builder extends CopyableBuilder<WorldBorder, Builder>, org.spongepower
/**
* Sets the final diameter of this world border.
*
* <p>If no {@link #timeToTargetDiameter(Duration)} is set, or it is set
* <p>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.</p>
*
Expand All @@ -222,10 +223,10 @@ interface Builder extends CopyableBuilder<WorldBorder, Builder>, org.spongepower
* {@link #initialDiameter(double) the initial diameter} to
* {@link #targetDiameter(double) its target diameter}.
*
* @param time The time, as a {@link Duration}
* @param ticks The transition duration in ticks
* @return The builder, for chaining.
*/
Builder timeToTargetDiameter(final Duration time);
Builder timeToTargetDiameter(final Ticks ticks);

/**
* Sets the distance beyond this world border that an entity may travel
Expand Down