public class IslandChangeEntityLimitEvent extends IslandEvent implements org.bukkit.event.Cancellable
island
Constructor and Description |
---|
IslandChangeEntityLimitEvent(SuperiorPlayer superiorPlayer,
Island island,
Key entity,
int entityLimit)
The constructor of the event.
|
Modifier and Type | Method and Description |
---|---|
Key |
getEntity()
Get the entity that the limit was changed for.
|
int |
getEntityLimit()
Get the new entity limit of the entity.
|
SuperiorPlayer |
getPlayer()
Get the player that changed the entity limit.
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
void |
setEntityLimit(int entityLimit)
Set the new entity limit of the entity..
|
getHandlerList, getHandlers, getIsland
public IslandChangeEntityLimitEvent(@Nullable SuperiorPlayer superiorPlayer, Island island, Key entity, int entityLimit)
superiorPlayer
- The player that changed the entity limit of an island.
If set to null, it means the limit was changed via the console.island
- The island that the entity limit was changed for.entity
- The entity that the limit was changed for.entityLimit
- The new entity limit of the entity.@Nullable public SuperiorPlayer getPlayer()
public Key getEntity()
public int getEntityLimit()
public void setEntityLimit(int entityLimit)
entityLimit
- The new entity limit to set.public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancelled)
setCancelled
in interface org.bukkit.event.Cancellable