public class IslandCreateWarpEvent extends IslandEvent implements org.bukkit.event.Cancellable
island
Constructor and Description |
---|
IslandCreateWarpEvent(SuperiorPlayer superiorPlayer,
Island island,
java.lang.String warpName,
org.bukkit.Location location,
boolean openToPublic,
WarpCategory warpCategory)
The constructor of the event.
|
Modifier and Type | Method and Description |
---|---|
org.bukkit.Location |
getLocation()
Get the location of the new warp.
|
SuperiorPlayer |
getPlayer()
Get the player that created the warp.
|
WarpCategory |
getWarpCategory()
Get the category of the new warp.
|
java.lang.String |
getWarpName()
Get the name of the new warp.
|
boolean |
isCancelled() |
boolean |
isOpenToPublic()
Get whether the warp is opened to the public.
|
void |
setCancelled(boolean cancelled) |
getHandlerList, getHandlers, getIsland
public IslandCreateWarpEvent(SuperiorPlayer superiorPlayer, Island island, java.lang.String warpName, org.bukkit.Location location, boolean openToPublic, @Nullable WarpCategory warpCategory)
superiorPlayer
- The player that created the warp.island
- The island that the warp was created on.warpName
- The name of the new warp.location
- The location of the new warp.openToPublic
- Whether the island is open to the public.warpCategory
- The category of the new warp.
If null, it means the warp will be added to the first found category;
if no category exists, new one will be created for the warp.public SuperiorPlayer getPlayer()
public java.lang.String getWarpName()
public org.bukkit.Location getLocation()
public boolean isOpenToPublic()
@Nullable public WarpCategory getWarpCategory()
public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancelled)
setCancelled
in interface org.bukkit.event.Cancellable