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 it's move.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionWorldBorderBoundsChangeFinishEvent(@NotNull World world, @NotNull WorldBorder worldBorder, double oldSize, double newSize, double duration) -
Method Summary
Modifier and TypeMethodDescriptiondoubleGets the duration this worldborder took to make the change.static @NotNull HandlerListdoubleGets the new size of the worldborder.doubleGets the old size of the worldborder.Methods inherited from class io.papermc.paper.event.world.border.WorldBorderEvent
getWorldBorderMethods inherited from class org.bukkit.event.world.WorldEvent
getWorldMethods 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
WorldBorderCenterChangeEventset the duration to 0.- Returns:
- the duration of the transition
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
-