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
An event which is called right before the changing of a relation with a
Team
(ie: ally/neutral)-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionRelationChangeTeamEvent
(@NotNull Team team, @NotNull Team otherTeam, @NotNull RelationType previousRelation, @NotNull RelationType newRelation) -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
@NotNull org.bukkit.event.HandlerList
@NotNull RelationType
@NotNull Team
@NotNull RelationType
void
setNewRelation
(@NotNull RelationType newRelation) Methods inherited from class com.booksaw.betterTeams.customEvents.TeamEvent
getTeam, isCancelled, setCancelled
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
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 classorg.bukkit.event.Event
-
getOtherTeam
-
getPreviousRelation
-
getNewRelation
-
setNewRelation
-