public class IslandChangeEffectLevelEvent extends IslandEvent implements org.bukkit.event.Cancellable
island
Constructor and Description |
---|
IslandChangeEffectLevelEvent(SuperiorPlayer superiorPlayer,
Island island,
org.bukkit.potion.PotionEffectType effectType,
int effectLevel)
The constructor of the event.
|
Modifier and Type | Method and Description |
---|---|
int |
getEffectLevel()
Get the new level of the effect.
|
org.bukkit.potion.PotionEffectType |
getEffectType()
Get the effect that the level was changed for.
|
SuperiorPlayer |
getPlayer()
Get the player that changed the effect level.
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
void |
setEffectLevel(int effectLevel)
Set the new level of the effect.
|
getHandlerList, getHandlers, getIsland
public IslandChangeEffectLevelEvent(@Nullable SuperiorPlayer superiorPlayer, Island island, org.bukkit.potion.PotionEffectType effectType, int effectLevel)
superiorPlayer
- The player that changed the effect level of an island.
If set to null, it means the level was changed via the console.island
- The island that the effect level was changed for.effectType
- The effect that the level was changed for.effectLevel
- The new level of the effect.@Nullable public SuperiorPlayer getPlayer()
public org.bukkit.potion.PotionEffectType getEffectType()
public int getEffectLevel()
public void setEffectLevel(int effectLevel)
effectLevel
- The new effect level to set.public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancelled)
setCancelled
in interface org.bukkit.event.Cancellable