Enum Class Crosshair

java.lang.Object
java.lang.Enum<Crosshair>
net.risingworld.api.utils.Crosshair
All Implemented Interfaces:
Serializable, Comparable<Crosshair>, Constable

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

    • Default

      public static final Crosshair Default
      The default crosshair
    • Pickup

      public static final Crosshair Pickup
      Pickup crosshair (small hand icon)
    • Crafting

      public static final Crosshair Crafting
      Crafting crosshair (small hammer icon)
    • Context

      public static final Crosshair Context
      Crosshair for context menu (circle with three dots)
    • Sitdown

      public static final Crosshair Sitdown
      Sitting crosshair (chair icon)
    • Door

      public static final Crosshair Door
      Door crosshair (door icon)
    • Scissors

      public static final Crosshair Scissors
      Scissors icon
    • Sleep

      public static final Crosshair Sleep
      Sleeping crosshair (Zzz)
    • Music

      public static final Crosshair Music
      Music icon
    • Mount

      public static final Crosshair Mount
      Add/mount crosshair (circle with + in it)
    • Trash

      public static final Crosshair Trash
      Trashbin icon
    • Recycle

      public static final Crosshair Recycle
      Recycle icon
    • Chest

      public static final Crosshair Chest
      Chest crosshair (chest icon)
    • Toilet

      public static final Crosshair Toilet
      Toilet icon
    • Latch

      public static final Crosshair Latch
      Latch icon
    • Write

      public static final Crosshair Write
      Write crosshair (pen icon)
    • Fire

      public static final Crosshair Fire
      Fire crosshair (small fire icon)
    • NoFire

      public static final Crosshair NoFire
      Crossed out fire crosshair
    • Wheel

      public static final Crosshair Wheel
      Wheel crosshair
  • Method Details

    • values

      public static Crosshair[] 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 Crosshair 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
    • getID

      public byte getID()
      Used internally.
      Returns:
      the crosshair id.
    • getCrosshair

      public static Crosshair getCrosshair(byte id)
      Gets the crosshair which has the provided id.
      Parameters:
      id - the id.
      Returns:
      the according Crosshair.