Enum SheepWarsTeam

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<SheepWarsTeam>, java.lang.constant.Constable

    public enum SheepWarsTeam
    extends java.lang.Enum<SheepWarsTeam>
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.lang.Enum

        java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      BLUE  
      NULL  
      RED  
      SPEC  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Boolean blocked  
      static int blueSlot  
      private org.bukkit.ChatColor color  
      private fr.royalpha.sheepwars.core.message.Message displayName  
      private org.bukkit.DyeColor dyecolor  
      private int lastSpawn  
      private org.bukkit.Color leatherColor  
      private org.bukkit.Material material  
      private java.lang.String name  
      private java.util.List<org.bukkit.entity.Player> players  
      static int redSlot  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private SheepWarsTeam​(java.lang.String name, fr.royalpha.sheepwars.core.message.Message displayName, org.bukkit.Material material, org.bukkit.DyeColor dyecolor, org.bukkit.ChatColor color, int r, int g, int b)  
    • Field Detail

      • redSlot

        public static int redSlot
      • blueSlot

        public static int blueSlot
      • name

        private java.lang.String name
      • material

        private org.bukkit.Material material
      • displayName

        private final fr.royalpha.sheepwars.core.message.Message displayName
      • dyecolor

        private org.bukkit.DyeColor dyecolor
      • color

        private final org.bukkit.ChatColor color
      • leatherColor

        private final org.bukkit.Color leatherColor
      • players

        private java.util.List<org.bukkit.entity.Player> players
      • blocked

        private java.lang.Boolean blocked
      • lastSpawn

        private int lastSpawn
    • Constructor Detail

      • SheepWarsTeam

        private SheepWarsTeam​(java.lang.String name,
                              fr.royalpha.sheepwars.core.message.Message displayName,
                              org.bukkit.Material material,
                              org.bukkit.DyeColor dyecolor,
                              org.bukkit.ChatColor color,
                              int r,
                              int g,
                              int b)
    • Method Detail

      • values

        public static SheepWarsTeam[] values()
        Returns an array containing the constants of this enum type, in the order they are declared.
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SheepWarsTeam valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getTeam

        public static SheepWarsTeam getTeam​(java.lang.String name)
      • getTeam

        public static SheepWarsTeam getTeam​(org.bukkit.ChatColor color)
      • addPlayer

        public void addPlayer​(org.bukkit.entity.Player player)
      • removePlayer

        public void removePlayer​(org.bukkit.entity.Player player)
      • updateScoreboardTeamCount

        public void updateScoreboardTeamCount()
      • getOnlinePlayers

        public java.util.List<org.bukkit.entity.Player> getOnlinePlayers()
      • setBlocked

        public void setBlocked​(boolean bool)
      • isBlocked

        public java.lang.Boolean isBlocked()
      • getNextSpawn

        public org.bukkit.Location getNextSpawn()
      • inGameRules

        public void inGameRules()
      • getDisplayName

        public java.lang.String getDisplayName​(org.bukkit.entity.Player player)
      • getIcon

        public org.bukkit.inventory.ItemStack getIcon​(org.bukkit.entity.Player p)
      • getName

        public java.lang.String getName()
      • getColor

        public org.bukkit.ChatColor getColor()
      • getBungeeColor

        public net.md_5.bungee.api.ChatColor getBungeeColor()
      • getMaterial

        public org.bukkit.Material getMaterial()
      • getLeatherColor

        public org.bukkit.Color getLeatherColor()
      • getDyeColor

        public org.bukkit.DyeColor getDyeColor()
      • checkTeams

        public static boolean checkTeams()
      • rebuildTeams

        private static void rebuildTeams()