public class IslandChangeWarpCategorySlotEvent extends IslandEvent implements org.bukkit.event.Cancellable
island
Constructor and Description |
---|
IslandChangeWarpCategorySlotEvent(SuperiorPlayer superiorPlayer,
Island island,
WarpCategory warpCategory,
int slot,
int maxSlot)
The constructor of the event.
|
Modifier and Type | Method and Description |
---|---|
SuperiorPlayer |
getPlayer()
Get the player that changed the slot of the warp-category.
|
int |
getSlot()
Get the new slot of the warp-category.
|
WarpCategory |
getWarpCategory()
Get the warp-category that its slot was changed.
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
void |
setSlot(int slot)
Set the new slot for the warp-category.
|
getHandlerList, getHandlers, getIsland
public IslandChangeWarpCategorySlotEvent(SuperiorPlayer superiorPlayer, Island island, WarpCategory warpCategory, int slot, int maxSlot)
superiorPlayer
- The player that changed the slot of the warp-category.island
- The island of the warp-category.warpCategory
- The warp-category that its slot was changed.slot
- The new slot of the warp-category.maxSlot
- The maximum slot that the warp category can occupy.public SuperiorPlayer getPlayer()
public WarpCategory getWarpCategory()
public int getSlot()
public void setSlot(int slot)
slot
- The new slot to set.public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancelled)
setCancelled
in interface org.bukkit.event.Cancellable