Package mindustry.world.meta
Class Attribute
java.lang.Object
mindustry.world.meta.Attribute
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Attribute[]static final AttributeHeat content.final intstatic final AttributeHeat content.final Stringstatic final AttributeHeat content.static final AttributeHeat content.static final AttributeHeat content.static final AttributeHeat content.static final AttributeHeat content. -
Method Summary
-
Field Details
-
all
-
map
-
heat
Heat content. Used for thermal generator yield. -
spores
Heat content. Used for thermal generator yield. -
water
Heat content. Used for thermal generator yield. -
oil
Heat content. Used for thermal generator yield. -
light
Heat content. Used for thermal generator yield. -
sand
Heat content. Used for thermal generator yield. -
steam
Heat content. Used for thermal generator yield. -
id
public final int id -
name
-
-
Method Details
-
env
public float env()- Returns:
- the environmental value for this attribute.
-
toString
-
get
Never returns null, may throw an exception if not found. -
exists
- Returns:
- Whether an attribute exists.
-
add
Automatically registers this attribute for use. Do not call after mod init.
-