Enum Class ColoredMaterial

java.lang.Object
java.lang.Enum<ColoredMaterial>
io.github.thebusybiscuit.slimefun4.utils.ColoredMaterial
All Implemented Interfaces:
Serializable, Comparable<ColoredMaterial>, Constable

public enum ColoredMaterial extends Enum<ColoredMaterial>
This class holds a few ordered Lists that hold colored variants of Material.
Author:
TheBusyBiscuit
See Also:
  • Enum Constant Details

    • WOOL

      public static final ColoredMaterial WOOL
      This List contains all wool colors ordered by their appearance ingame.
    • CARPET

      public static final ColoredMaterial CARPET
      This List contains all carpet colors ordered by their appearance ingame.
    • STAINED_GLASS

      public static final ColoredMaterial STAINED_GLASS
      This List contains all stained glass colors ordered by their appearance ingame.
    • STAINED_GLASS_PANE

      public static final ColoredMaterial STAINED_GLASS_PANE
      This List contains all stained glass pane colors ordered by their appearance ingame.
    • TERRACOTTA

      public static final ColoredMaterial TERRACOTTA
      This List contains all terracotta colors ordered by their appearance ingame.
    • GLAZED_TERRACOTTA

      public static final ColoredMaterial GLAZED_TERRACOTTA
      This List contains all glazed terracotta colors ordered by their appearance ingame.
    • CONCRETE

      public static final ColoredMaterial CONCRETE
      This List contains all concrete colors ordered by their appearance ingame.
    • SHULKER_BOX

      public static final ColoredMaterial SHULKER_BOX
      This List contains all shulker box colors ordered by their appearance ingame.
  • Method Details

    • values

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

      public static ColoredMaterial valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • asList

      @Nonnull public List<Material> asList()
      This returns an ordered List of Materials that are part o this ColoredMaterial.
      Returns:
      An ordered List of Materials
    • get

      @Nonnull public Material get(int index)
      This returns the Material at the given index.
      Parameters:
      index - The index
      Returns:
      The Material at that index
    • get

      @Nonnull public Material get(@Nonnull DyeColor color)
      This returns the Material with the given DyeColor.
      Parameters:
      color - The DyeColor
      Returns:
      The Material with that DyeColor