public class WorldBorderBoundsChangeFinishEvent extends WorldBorderEvent
Event.Result
Constructor and Description |
---|
WorldBorderBoundsChangeFinishEvent(@NotNull World world,
@NotNull WorldBorder worldBorder,
double oldSize,
double newSize,
double duration) |
Modifier and Type | Method and Description |
---|---|
double |
getDuration()
Gets the duration this worldborder took to make the change.
|
static @NotNull HandlerList |
getHandlerList() |
@NotNull HandlerList |
getHandlers() |
double |
getNewSize()
Gets the new size of the worldborder.
|
double |
getOldSize()
Gets the old size of the worldborder.
|
getWorldBorder
getWorld
callEvent, getEventName, isAsynchronous
public double getOldSize()
public double getNewSize()
public double getDuration()
Can be 0 if handlers for WorldBorderCenterChangeEvent
set the duration to 0.
@NotNull public @NotNull HandlerList getHandlers()
getHandlers
in class Event
@NotNull public static @NotNull HandlerList getHandlerList()
Copyright © 2021. All rights reserved.