Class Item

All Implemented Interfaces:
Comparable<Content>, Senseable

public class Item extends UnlockableContent implements Senseable
  • Field Details

    • color

      public arc.graphics.Color color
    • explosiveness

      public float explosiveness
      how explosive this item is.
    • flammability

      public float flammability
      flammability above 0.3 makes this eligible for item burners.
    • radioactivity

      public float radioactivity
      how radioactive this item is.
    • charge

      public float charge
      how electrically potent this item is.
    • hardness

      public int hardness
      drill hardness of the item
    • cost

      public float cost
      base material cost of this item, used for calculating place times 1 cost = 1 tick added to build time
    • healthScaling

      public float healthScaling
      When this item is present in the build cost, a block's default health is multiplied by 1 + scaling, where 'scaling' is summed together for all item requirement types.
    • lowPriority

      public boolean lowPriority
      if true, this item is of the lowest priority to drills.
    • frames

      public int frames
      If >0, this item is animated.
    • transitionFrames

      public int transitionFrames
      Number of generated transition frames between each frame
    • frameTime

      public float frameTime
      Ticks in-between animation frames.
    • buildable

      public boolean buildable
      If true, this material is used by buildings. If false, this material will be incinerated in certain cores.
    • hidden

      public boolean hidden
  • Constructor Details

    • Item

      public Item(String name, arc.graphics.Color color)
    • Item

      public Item(String name)
  • Method Details