public class IslandChangeWarpCategoryIconEvent extends IslandEvent implements org.bukkit.event.Cancellable
island
Constructor and Description |
---|
IslandChangeWarpCategoryIconEvent(SuperiorPlayer superiorPlayer,
Island island,
WarpCategory warpCategory,
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-category.
|
SuperiorPlayer |
getPlayer()
Get the player that changed the icon of the warp-category.
|
WarpCategory |
getWarpCategory()
Get the warp-category that its icon was changed.
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
void |
setIcon(org.bukkit.inventory.ItemStack icon)
Set the new icon for the warp-category.
|
getHandlerList, getHandlers, getIsland
public IslandChangeWarpCategoryIconEvent(SuperiorPlayer superiorPlayer, Island island, WarpCategory warpCategory, @Nullable org.bukkit.inventory.ItemStack icon)
superiorPlayer
- The player that changed the icon of the warp-category.island
- The island of the warp-category.warpCategory
- The warp-category that its icon was changed.icon
- The new icon of the warp-category.
If null, default icon will be set.public SuperiorPlayer getPlayer()
public WarpCategory getWarpCategory()
@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