Class Attribute

java.lang.Object
mindustry.world.meta.Attribute

public class Attribute extends Object
  • Field Details

    • all

      public static Attribute[] all
    • map

      public static ObjectMap<String,Attribute> map
    • heat

      public static final Attribute heat
      Heat content. Used for thermal generator yield.
    • spores

      public static final Attribute spores
      Heat content. Used for thermal generator yield.
    • water

      public static final Attribute water
      Heat content. Used for thermal generator yield.
    • oil

      public static final Attribute oil
      Heat content. Used for thermal generator yield.
    • light

      public static final Attribute light
      Heat content. Used for thermal generator yield.
    • sand

      public static final Attribute sand
      Heat content. Used for thermal generator yield.
    • steam

      public static final Attribute steam
      Heat content. Used for thermal generator yield.
    • id

      public final int id
    • name

      public final String name
  • Method Details

    • env

      public float env()
      Returns:
      the environmental value for this attribute.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • get

      public static Attribute get(String name)
      Never returns null, may throw an exception if not found.
    • exists

      public static boolean exists(String name)
      Returns:
      Whether an attribute exists.
    • add

      public static Attribute add(String name)
      Automatically registers this attribute for use. Do not call after mod init.