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

public static class TeamStageEvent.Check extends 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).
  • 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 for
      stageName - the stage name for the event
      hasStage - 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.