Class PartyCreateEvent

java.lang.Object
org.bukkit.event.Event
dev.itsharshxd.zentrix.api.events.ZentrixEvent
dev.itsharshxd.zentrix.api.events.party.PartyCreateEvent

public class PartyCreateEvent extends ZentrixEvent
Called when a new party is created.
Since:
1.2.0
  • Nested Class Summary

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

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

    Constructors
    Constructor
    Description
    PartyCreateEvent(@NotNull ZentrixParty party, @NotNull UUID leaderId)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
     
    @NotNull org.bukkit.event.HandlerList
    Gets the handler list for this event.
    @NotNull UUID
    Gets the UUID of the player who created the party.
    @NotNull ZentrixParty
    Gets the party that was created.

    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

    • PartyCreateEvent

      public PartyCreateEvent(@NotNull @NotNull ZentrixParty party, @NotNull @NotNull UUID leaderId)
  • Method Details

    • getParty

      @NotNull public @NotNull ZentrixParty getParty()
      Gets the party that was created.
      Returns:
      The created party
    • getLeaderId

      @NotNull public @NotNull UUID getLeaderId()
      Gets the UUID of the player who created the party.
      Returns:
      The leader's UUID
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Description copied from class: ZentrixEvent
      Gets the handler list for this event.
      Overrides:
      getHandlers in class ZentrixEvent
      Returns:
      The handler list
    • getHandlerList

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