Enum Class CommonMetal

java.lang.Object
java.lang.Enum<CommonMetal>
com.simibubi.create.foundation.data.recipe.CommonMetal
All Implemented Interfaces:
Serializable, Comparable<CommonMetal>, Constable

public enum CommonMetal extends Enum<CommonMetal>
  • Enum Constant Details

  • Field Details

    • name

      public final String name
      The name of this metal, for use in IDs. Note that a metal's name may be different depending on mod context.
      See Also:
    • mods

      public final Set<Mods> mods
      The immutable set of mods which provide an ingot and nugget form of this metal.
    • isNatural

      public final boolean isNatural
      True is this metal generates naturally. If false, the following tags are nonsense:
    • ores

      public final CommonMetal.ItemLikeTag ores
    • rawOres

      public final net.minecraft.tags.TagKey<net.minecraft.world.item.Item> rawOres
    • rawStorageBlocks

      public final CommonMetal.ItemLikeTag rawStorageBlocks
    • ingots

      public final net.minecraft.tags.TagKey<net.minecraft.world.item.Item> ingots
    • storageBlocks

      public final CommonMetal.ItemLikeTag storageBlocks
    • nuggets

      public final net.minecraft.tags.TagKey<net.minecraft.world.item.Item> nuggets
    • plates

      public final net.minecraft.tags.TagKey<net.minecraft.world.item.Item> plates
  • Method Details

    • values

      public static CommonMetal[] 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 CommonMetal 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
    • getName

      public String getName(Mods mod)
    • toString

      public String toString()
      Overrides:
      toString in class Enum<CommonMetal>
    • of

      public static Set<CommonMetal> of(Mods mod)
      Returns:
      the set of all metals known to be provided by the given mod.