Class WorldBorderBoundsChangeFinishEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.world.WorldEvent
io.papermc.paper.event.world.border.WorldBorderEvent
io.papermc.paper.event.world.border.WorldBorderBoundsChangeFinishEvent
Called when a moving world border has finished its move.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
ConstructorDescriptionWorldBorderBoundsChangeFinishEvent
(@NotNull World world, @NotNull WorldBorder worldBorder, double oldSize, double newSize, double duration) -
Method Summary
Modifier and TypeMethodDescriptiondouble
Gets the duration this worldborder took to make the change.static @NotNull HandlerList
double
Gets the new size of the worldborder.double
Gets the old size of the worldborder.Methods inherited from class io.papermc.paper.event.world.border.WorldBorderEvent
getWorldBorder
Methods inherited from class org.bukkit.event.world.WorldEvent
getWorld
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
WorldBorderBoundsChangeFinishEvent
-
-
Method Details
-
getOldSize
public double getOldSize()Gets the old size of the worldborder.- Returns:
- the old size
-
getNewSize
public double getNewSize()Gets the new size of the worldborder.- Returns:
- the new size
-
getDuration
public double getDuration()Gets the duration this worldborder took to make the change.Can be 0 if handlers for
WorldBorderCenterChangeEvent
set the duration to 0.- Returns:
- the duration of the transition
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-