public class IslandChangeMobDropsEvent extends IslandEvent implements org.bukkit.event.Cancellable
island
Constructor and Description |
---|
IslandChangeMobDropsEvent(SuperiorPlayer superiorPlayer,
Island island,
double mobDrops)
The constructor of the event.
|
Modifier and Type | Method and Description |
---|---|
double |
getMobDrops()
Get the new mob-drops multiplier of the island.
|
SuperiorPlayer |
getPlayer()
Get the player that changed the mob-drops multiplier.
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
void |
setMobDrops(double mobDrops)
Set the new mob-drops multiplier for the island.
|
getHandlerList, getHandlers, getIsland
public IslandChangeMobDropsEvent(@Nullable SuperiorPlayer superiorPlayer, Island island, double mobDrops)
superiorPlayer
- The player that changed the mob-drops multiplier of the island.
If set to null, it means the mob-drops multiplier was changed via the console.island
- The island that the mob-drops multiplier was changed for.mobDrops
- The new mob drops of the island@Nullable public SuperiorPlayer getPlayer()
public double getMobDrops()
public void setMobDrops(double mobDrops)
mobDrops
- The mob-drops multiplier to set.public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancelled)
setCancelled
in interface org.bukkit.event.Cancellable