Class TeamStageEvent.Check
java.lang.Object
net.minecraftforge.eventbus.api.Event
dev.scsupercraft.teamstages.event.TeamStageEvent
dev.scsupercraft.teamstages.event.TeamStageEvent.Check
- Enclosing class:
- TeamStageEvent
This event is fired when a stage check is done on a player using
TeamStageHelper.TeamHelper.hasStage(net.minecraft.world.entity.player.Player, java.lang.String).-
Nested Class Summary
Nested classes/interfaces inherited from class dev.scsupercraft.teamstages.event.TeamStageEvent
TeamStageEvent.Add, TeamStageEvent.Added, TeamStageEvent.Check, TeamStageEvent.Cleared, TeamStageEvent.Remove, TeamStageEvent.RemovedNested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if the team originally had the stage.booleanhasStage()Checks if the team has the stage according to the event.voidsetHasStage(boolean hasStage) Sets the result of the event.Methods inherited from class dev.scsupercraft.teamstages.event.TeamStageEvent
getStageName, getTeamMethods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Constructor Details
-
Check
public Check(@NotNull @NotNull dev.ftb.mods.ftbteams.api.Team team, @NotNull @NotNull String stageName, boolean hasStage) Creates a new check team stage event.- Parameters:
team- the team the event is forstageName- the stage name for the eventhasStage- whether the team originally had this stage
-
-
Method Details
-
hadStageOriginally
public boolean hadStageOriginally()Checks if the team originally had the stage.- Returns:
- Whether or not the team originally had this stage.
-
hasStage
public boolean hasStage()Checks if the team has the stage according to the event.- Returns:
- Whether or not the event says they have the stage.
-
setHasStage
public void setHasStage(boolean hasStage) Sets the result of the event.- Parameters:
hasStage- Whether or not the team should have this event.
-