Enum Class Toolbox.Station

java.lang.Object
java.lang.Enum<Toolbox.Station>
de.Keyle.MyPet.api.skill.skills.Toolbox.Station
All Implemented Interfaces:
Serializable, Comparable<Toolbox.Station>, Constable
Enclosing interface:
Toolbox

public static enum Toolbox.Station extends Enum<Toolbox.Station>
Enumerates the workstations the Toolbox skill can unlock. Each entry maps its skilltree upgrade key to a GUI icon and the vanilla block translation key.
  • Enum Constant Details

    • CRAFTING_TABLE

      public static final Toolbox.Station CRAFTING_TABLE
      The c r a f t i n g_ t a b l e( workstation.
    • ANVIL

      public static final Toolbox.Station ANVIL
      The a n v i l( workstation.
    • GRINDSTONE

      public static final Toolbox.Station GRINDSTONE
      The g r i n d s t o n e( workstation.
    • SMITHING_TABLE

      public static final Toolbox.Station SMITHING_TABLE
      The s m i t h i n g_ t a b l e( workstation.
    • STONECUTTER

      public static final Toolbox.Station STONECUTTER
      The s t o n e c u t t e r( workstation.
    • LOOM

      public static final Toolbox.Station LOOM
      The l o o m( workstation.
    • CARTOGRAPHY_TABLE

      public static final Toolbox.Station CARTOGRAPHY_TABLE
      The c a r t o g r a p h y_ t a b l e( workstation.
  • Method Details

    • values

      public static Toolbox.Station[] 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 Toolbox.Station 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
    • open

      public InventoryView open(HumanEntity viewer)
      Opens this station as a virtual view for the given player (no block required).
      Parameters:
      viewer - who to open the workstation for
      Returns:
      the opened view, or null if it could not be opened
    • getUpgradeKey

      public String getUpgradeKey()
      Key this station is unlocked under in skilltree JSON.
      Returns:
      the upgrade key
    • getIcon

      public Material getIcon()
      Item shown for this station in the menu.
      Returns:
      the icon material
    • getTranslationKey

      public String getTranslationKey()
      Vanilla translation key for the station's block name.
      Returns:
      the translation key