Enum Class BlockFlag

java.lang.Object
java.lang.Enum<BlockFlag>
mindustry.world.meta.BlockFlag
All Implemented Interfaces:
Serializable, Comparable<BlockFlag>, Constable

public enum BlockFlag extends Enum<BlockFlag>
Stores special flags of blocks for easy querying.
  • Enum Constant Details

    • core

      public static final BlockFlag core
      Enemy core; primary target for all units.
    • storage

      public static final BlockFlag storage
      Vault/container/etc
    • generator

      public static final BlockFlag generator
      Something that generates power.
    • turret

      public static final BlockFlag turret
      Any turret.
    • factory

      public static final BlockFlag factory
      A block that transforms resources.
    • repair

      public static final BlockFlag repair
      Repair point.
    • battery

      public static final BlockFlag battery
      Block that stored power for resupply.
    • reactor

      public static final BlockFlag reactor
      Any reactor block.
    • extinguisher

      public static final BlockFlag extinguisher
      Blocks that extinguishes fires.
    • drill

      public static final BlockFlag drill
      Is a drill.
    • launchPad

      public static final BlockFlag launchPad
    • unitCargoUnloadPoint

      public static final BlockFlag unitCargoUnloadPoint
    • unitAssembler

      public static final BlockFlag unitAssembler
    • hasFogRadius

      public static final BlockFlag hasFogRadius
  • Field Details

    • all

      public static final BlockFlag[] all
    • allLogic

      public static final BlockFlag[] allLogic
      Values for logic only. Filters out some internal flags.
  • Method Details

    • values

      public static BlockFlag[] 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 BlockFlag 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