Class EntityTeamEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
net.mathias2246.buildmc.api.event.CustomEntityEvent
net.mathias2246.buildmc.api.event.team.EntityTeamEvent
Direct Known Subclasses:
EntityChangeTeamEvent

public class EntityTeamEvent extends CustomEntityEvent
Represents a team-related event.
  • Nested Class Summary

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

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

    Fields inherited from class CustomEntityEvent

    metadataHolder

    Fields inherited from class org.bukkit.event.entity.EntityEvent

    entity
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    EntityTeamEvent(@NotNull org.bukkit.entity.Entity entity, @Nullable Team team)
    Base constructor for EntityTeamEvents.
  • Method Summary

    Modifier and Type
    Method
    Description
    static @NotNull org.bukkit.event.HandlerList
     
    @NotNull org.bukkit.event.HandlerList
    Returns the HandlerList for this event type.
    @Nullable Team
    Returns the Team of the entity involved in this event.

    Methods inherited from class CustomEntityEvent

    getMetadata, putMetadata, removeMetadata

    Methods inherited from class org.bukkit.event.entity.EntityEvent

    getEntity, getEntityType

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, isAsynchronous

    Methods inherited from class Object

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

    • EntityTeamEvent

      protected EntityTeamEvent(@NotNull @NotNull org.bukkit.entity.Entity entity, @Nullable @Nullable Team team)
      Base constructor for EntityTeamEvents.
      Parameters:
      entity - The Entity who is involved in this event
      team - The Team of the entity who is involved
  • Method Details

    • getTeam

      @Nullable public @Nullable Team getTeam()
      Returns the Team of the entity involved in this event.
      Returns:
      The team of the entity who is involved in this event
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Description copied from class: CustomEntityEvent
      Returns the HandlerList for this event type.

      Bukkit requires each concrete event class to define its own static HandlerList instance and to return it from this method. This is necessary for Bukkit’s event registration and dispatch system.

      Specified by:
      getHandlers in class CustomEntityEvent
      Returns:
      the handler list for this event (never null)
    • getHandlerList

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