Skip to content

Commit bb72885

Browse files
committed
change worldborder timeToTargetDiameter to ticks
1 parent 0a773a9 commit bb72885

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/main/java/org/spongepowered/api/world/border/WorldBorder.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
import org.spongepowered.api.Sponge;
2828
import org.spongepowered.api.util.CopyableBuilder;
29+
import org.spongepowered.api.util.Ticks;
2930
import org.spongepowered.math.vector.Vector2d;
3031

3132
import java.time.Duration;
@@ -189,7 +190,7 @@ interface Builder extends CopyableBuilder<WorldBorder, Builder>, org.spongepower
189190
* <p>If this differs from the the value supplied to
190191
* {@link #targetDiameter(double)}, then the border size starts at the
191192
* diameter specified here, growing or shrinking at a constant speed for
192-
* the time provided in {@link #timeToTargetDiameter(Duration)} where it
193+
* the time provided in {@link #timeToTargetDiameter(Ticks)} where it
193194
* will stop at the supplied target. If the supplied time is zero or not
194195
* given, then this value is ignored and the target diameter is used.</p>
195196
*
@@ -205,7 +206,7 @@ interface Builder extends CopyableBuilder<WorldBorder, Builder>, org.spongepower
205206
/**
206207
* Sets the final diameter of this world border.
207208
*
208-
* <p>If no {@link #timeToTargetDiameter(Duration)} is set, or it is set
209+
* <p>If no {@link #timeToTargetDiameter(Ticks)} is set, or it is set
209210
* to {@link Duration#ZERO}, then the {@link #initialDiameter(double)}
210211
* is ignored and this is the only diameter used.</p>
211212
*
@@ -222,10 +223,10 @@ interface Builder extends CopyableBuilder<WorldBorder, Builder>, org.spongepower
222223
* {@link #initialDiameter(double) the initial diameter} to
223224
* {@link #targetDiameter(double) its target diameter}.
224225
*
225-
* @param time The time, as a {@link Duration}
226+
* @param ticks The time, as a {@link Ticks}
226227
* @return The builder, for chaining.
227228
*/
228-
Builder timeToTargetDiameter(final Duration time);
229+
Builder timeToTargetDiameter(final Ticks ticks);
229230

230231
/**
231232
* Sets the distance beyond this world border that an entity may travel

0 commit comments

Comments
 (0)