public class WorldBorderCenterChangeEvent extends WorldBorderEvent implements Cancellable
Event.Result| Constructor and Description |
|---|
WorldBorderCenterChangeEvent(@NotNull World world,
@NotNull WorldBorder worldBorder,
@NotNull Location oldCenter,
@NotNull Location newCenter) |
| Modifier and Type | Method and Description |
|---|---|
static @NotNull HandlerList |
getHandlerList() |
@NotNull HandlerList |
getHandlers() |
@NotNull Location |
getNewCenter()
Gets the new center location for the world border.
|
@NotNull Location |
getOldCenter()
Gets the original center location of the world border.
|
boolean |
isCancelled()
Gets the cancellation state of this event.
|
void |
setCancelled(boolean cancel)
Sets the cancellation state of this event.
|
void |
setNewCenter(@NotNull Location newCenter)
Sets the new center location for the world border.
|
getWorldBordergetWorldcallEvent, getEventName, isAsynchronous@NotNull public @NotNull Location getOldCenter()
@NotNull public @NotNull Location getNewCenter()
public void setNewCenter(@NotNull @NotNull Location newCenter)
newCenter - the new centerpublic boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - true if you wish to cancel this event@NotNull public @NotNull HandlerList getHandlers()
getHandlers in class Event@NotNull public static @NotNull HandlerList getHandlerList()
Copyright © 2021. All rights reserved.