Class RelationChangeTeamEvent

java.lang.Object
org.bukkit.event.Event
com.booksaw.betterTeams.customEvents.TeamEvent
com.booksaw.betterTeams.customEvents.RelationChangeTeamEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class RelationChangeTeamEvent extends TeamEvent
An event which is called right before the changing of a relation with a Team (ie: ally/neutral)
  • Constructor Details

    • RelationChangeTeamEvent

      public RelationChangeTeamEvent(@NotNull @NotNull Team team, @NotNull @NotNull Team otherTeam, @NotNull @NotNull RelationType previousRelation, @NotNull @NotNull RelationType newRelation)
  • Method Details

    • getHandlerList

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

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

      @NotNull public @NotNull Team getOtherTeam()
    • getPreviousRelation

      @NotNull public @NotNull RelationType getPreviousRelation()
    • getNewRelation

      @NotNull public @NotNull RelationType getNewRelation()
    • setNewRelation

      public void setNewRelation(@NotNull @NotNull RelationType newRelation)