Class PlayerAutoMinerTimeModifyEvent

java.lang.Object
org.bukkit.event.Event

public final class PlayerAutoMinerTimeModifyEvent extends XPrisonPlayerEvent
Event called when a player's AutoMiner time is modified.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Field Summary

    Fields inherited from class dev.drawethree.xprison.api.shared.events.player.XPrisonPlayerEvent

    player
  • Constructor Summary

    Constructors
    Constructor
    Description
    PlayerAutoMinerTimeModifyEvent(org.bukkit.entity.Player player, TimeUnit unit, long duration)
    Constructs a new PlayerAutoMinerTimeModifyEvent.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
    Gets the handler list for this event.
    @NotNull org.bukkit.event.HandlerList
    Gets the handler list for this event instance.

    Methods inherited from class org.bukkit.event.Event

    getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PlayerAutoMinerTimeModifyEvent

      public PlayerAutoMinerTimeModifyEvent(org.bukkit.entity.Player player, TimeUnit unit, long duration)
      Constructs a new PlayerAutoMinerTimeModifyEvent.
      Parameters:
      player - The player whose AutoMiner time is being modified
      unit - The unit of time for the modification
      duration - The amount of time to add or subtract (can be negative)
  • Method Details

    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
      Gets the handler list for this event.
      Returns:
      The HandlerList for this event.
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Gets the handler list for this event instance.
      Specified by:
      getHandlers in class org.bukkit.event.Event
      Returns:
      The HandlerList for this event.