public class IslandChangeWarpIconEvent extends IslandEvent implements org.bukkit.event.Cancellable
island
Constructor and Description |
---|
IslandChangeWarpIconEvent(SuperiorPlayer superiorPlayer,
Island island,
IslandWarp islandWarp,
org.bukkit.inventory.ItemStack icon)
The constructor of the event.
|
Modifier and Type | Method and Description |
---|---|
org.bukkit.inventory.ItemStack |
getIcon()
Get the new icon of the warp.
|
IslandWarp |
getIslandWarp()
Get the warp that its icon was changed.
|
SuperiorPlayer |
getPlayer()
Get the player that changed the icon of the warp.
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
void |
setIcon(org.bukkit.inventory.ItemStack icon)
Set the new icon for the warp.
|
getHandlerList, getHandlers, getIsland
public IslandChangeWarpIconEvent(SuperiorPlayer superiorPlayer, Island island, IslandWarp islandWarp, @Nullable org.bukkit.inventory.ItemStack icon)
superiorPlayer
- The player that changed the icon of the warp.island
- The island of the warp.islandWarp
- The warp that its icon was changed.icon
- The new icon of the warp.
If null, default icon will be set.public SuperiorPlayer getPlayer()
public IslandWarp getIslandWarp()
@Nullable public org.bukkit.inventory.ItemStack getIcon()
public void setIcon(@Nullable org.bukkit.inventory.ItemStack icon)
icon
- The new icon to set.public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancelled)
setCancelled
in interface org.bukkit.event.Cancellable