Class IncomeTickEvent

All Implemented Interfaces:
org.bukkit.event.Cancellable

public final class IncomeTickEvent extends CancellableStealABlockEvent
Fired once per second per stored block when passive income is added (only constructed and fired if at least one listener is registered to this event).
  • Constructor Details

    • IncomeTickEvent

      public IncomeTickEvent(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull StoredBlockView storedBlock, double incomeAmount)
  • Method Details

    • getPlayer

      @NotNull public @NotNull org.bukkit.entity.Player getPlayer()
    • getStoredBlock

      @NotNull public @NotNull StoredBlockView getStoredBlock()
    • getIncomeAmount

      public double getIncomeAmount()
    • setIncomeAmount

      public void setIncomeAmount(double incomeAmount)
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      @NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()
    • hasRegisteredListeners

      public static boolean hasRegisteredListeners()