Enum Class EditorTool

java.lang.Object
java.lang.Enum<EditorTool>
mindustry.editor.EditorTool
All Implemented Interfaces:
Serializable, Comparable<EditorTool>, Constable

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

  • Field Details

    • all

      public static final EditorTool[] all
    • altModes

      public final String[] altModes
      All the internal alternate placement modes of this tool.
    • key

      public KeyCode key
      Key to activate this tool.
    • mode

      public int mode
      The current alternate placement mode. -1 is the standard mode, no changes.
    • edit

      public boolean edit
      Whether this tool causes canvas changes when touched.
    • draggable

      public boolean draggable
      Whether this tool should be dragged across the canvas when the mouse moves.
  • Method Details

    • values

      public static EditorTool[] 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 EditorTool 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
    • touched

      public void touched(int x, int y)
    • touchedLine

      public void touchedLine(int x1, int y1, int x2, int y2)