Enum TeamColor

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

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

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

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

      Modifier and Type Method Description
      static java.lang.String enName​(java.lang.Byte b)
      Get the english for byte as color name
      static java.lang.String enName​(java.lang.String material)
      Get the english for material as color name
      static org.bukkit.Material getBedBlock​(TeamColor teamColor)
      Get bed with color
      static org.bukkit.ChatColor getChatColor​(TeamColor teamColor)  
      static org.bukkit.ChatColor getChatColor​(java.lang.String culoare)  
      static org.bukkit.Color getColor​(TeamColor teamColor)  
      static org.bukkit.DyeColor getDyeColor​(java.lang.String culoare)  
      static org.bukkit.Material getGlass​(TeamColor teamColor)
      Get glass with team color
      static org.bukkit.Material getGlassPane​(TeamColor teamColor)
      Get glass with team color
      static org.bukkit.Material getGlazedTerracotta​(TeamColor teamColor)
      Get glazed terracotta with team color
      static org.bukkit.Material getWool​(TeamColor teamColor)
      Get wool with team color
      static byte itemColor​(TeamColor teamColor)
      Get the byte color for Minecraft versions until 1.12 included
      static TeamColor valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static TeamColor[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • values

        public static TeamColor[] 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 TeamColor 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
      • getChatColor

        public static org.bukkit.ChatColor getChatColor​(java.lang.String culoare)
      • getChatColor

        public static org.bukkit.ChatColor getChatColor​(TeamColor teamColor)
      • getDyeColor

        public static org.bukkit.DyeColor getDyeColor​(java.lang.String culoare)
      • itemColor

        public static byte itemColor​(TeamColor teamColor)
        Get the byte color for Minecraft versions until 1.12 included
      • enName

        public static java.lang.String enName​(java.lang.String material)
        Get the english for material as color name
      • enName

        public static java.lang.String enName​(java.lang.Byte b)
        Get the english for byte as color name
      • getColor

        public static org.bukkit.Color getColor​(TeamColor teamColor)
      • getBedBlock

        public static org.bukkit.Material getBedBlock​(TeamColor teamColor)
        Get bed with color
        Returns:
        1.13+ material
      • getGlass

        public static org.bukkit.Material getGlass​(TeamColor teamColor)
        Get glass with team color
        Returns:
        1.13+ material
      • getGlassPane

        public static org.bukkit.Material getGlassPane​(TeamColor teamColor)
        Get glass with team color
      • getGlazedTerracotta

        public static org.bukkit.Material getGlazedTerracotta​(TeamColor teamColor)
        Get glazed terracotta with team color
        Returns:
        1.13+ material
      • getWool

        public static org.bukkit.Material getWool​(TeamColor teamColor)
        Get wool with team color
        Returns:
        1.13+ material