Class TeamStageHelper

java.lang.Object
dev.scsupercraft.teamstages.data.TeamStageHelper

public class TeamStageHelper extends Object
A helper class for managing stages.
  • Method Details

    • isValidStageName

      public static boolean isValidStageName(String stageName)
      Checks if a string is valid as a stage name.
      Parameters:
      stageName - The potential name.
      Returns:
      Whether the name is valid as a stage name.
    • getKnownStages

      public static Set<String> getKnownStages()
      Gets an immutable set of all the stages defined in the known stages json file.
      Returns:
      An immutable set of all known stages.
    • isStageKnown

      public static boolean isStageKnown(String stage)
      Checks if a stage has been defined in the known stages file.
      Parameters:
      stage - The stage name to search for.
      Returns:
      Whether the stage name exists in the known stages.
    • player

      public static TeamStageHelper.PlayerHelper player()
      Returns the player stage helper.
      Returns:
      the player stage helper
    • team

      public static TeamStageHelper.TeamHelper team()
      Returns the team stage helper.
      Returns:
      the team stage helper
    • syncTeam

      public static void syncTeam(dev.ftb.mods.ftbteams.api.Team team)
      Goes through the team's online members and syncs their stage data from the server to the client.
      Parameters:
      team - The team to sync.
      See Also:
    • syncPlayer

      public static void syncPlayer(net.minecraft.server.level.ServerPlayer player)
      Syncs a player's stage data from the server to the client.
      Parameters:
      player - The player to sync.
      See Also: