public class IslandChangeCropGrowthEvent extends IslandEvent implements org.bukkit.event.Cancellable
island
Constructor and Description |
---|
IslandChangeCropGrowthEvent(SuperiorPlayer superiorPlayer,
Island island,
double cropGrowth)
The constructor of the event.
|
Modifier and Type | Method and Description |
---|---|
double |
getCropGrowth()
Get the new crop-growth multiplier of the island.
|
SuperiorPlayer |
getPlayer()
Get the player that changed the crop-growth multiplier.
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
void |
setCropGrowth(double cropGrowth)
Set the new crop-growth multiplier for the island.
|
getHandlerList, getHandlers, getIsland
public IslandChangeCropGrowthEvent(@Nullable SuperiorPlayer superiorPlayer, Island island, double cropGrowth)
superiorPlayer
- The player that changed the crop-growth multiplier of the island.
If set to null, it means the crop-growth multiplier was changed via the console.island
- The island that the crop-growth multiplier was changed for.cropGrowth
- The new crop-growth multiplier of the island@Nullable public SuperiorPlayer getPlayer()
public double getCropGrowth()
public void setCropGrowth(double cropGrowth)
cropGrowth
- The crop-growth 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