Class VotifierEvent

java.lang.Object
org.bukkit.event.Event
com.vexsoftware.votifier.model.VotifierEvent

public class VotifierEvent extends org.bukkit.event.Event
VotifierEvent is a custom Bukkit event class that is sent synchronously to CraftBukkit's main thread allowing other plugins to listen for votes.

It will only be sent asynchronously when running under Folia.

  • Nested Class Summary

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

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

    Constructors
    Constructor
    Description
    VotifierEvent(com.vexsoftware.votifier.model.Vote vote)
    Constructs a vote event that encapsulated the given vote record.
    VotifierEvent(com.vexsoftware.votifier.model.Vote vote, boolean async)
    Constructs a vote event that encapsulated the given vote record.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
     
    @NotNull org.bukkit.event.HandlerList
     
    com.vexsoftware.votifier.model.Vote
    Return the encapsulated vote record.

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

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

    • VotifierEvent

      public VotifierEvent(com.vexsoftware.votifier.model.Vote vote)
      Constructs a vote event that encapsulated the given vote record.
      Parameters:
      vote - vote record
    • VotifierEvent

      public VotifierEvent(com.vexsoftware.votifier.model.Vote vote, boolean async)
      Constructs a vote event that encapsulated the given vote record.
      Parameters:
      vote - vote record
      async - whether the event will be fired asynchronously
  • Method Details

    • getVote

      public com.vexsoftware.votifier.model.Vote getVote()
      Return the encapsulated vote record.
      Returns:
      vote record
    • getHandlers

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

      public static org.bukkit.event.HandlerList getHandlerList()