Package de.Keyle.MyPet.api.skill.skills
Enum Class Toolbox.Station
- All Implemented Interfaces:
Serializable,Comparable<Toolbox.Station>,Constable
- Enclosing interface:
Toolbox
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe a n v i l( workstation.The c a r t o g r a p h y_ t a b l e( workstation.The c r a f t i n g_ t a b l e( workstation.The g r i n d s t o n e( workstation.The l o o m( workstation.The s m i t h i n g_ t a b l e( workstation.The s t o n e c u t t e r( workstation. -
Method Summary
Modifier and TypeMethodDescriptiongetIcon()Item shown for this station in the menu.Vanilla translation key for the station's block name.Key this station is unlocked under in skilltree JSON.open(HumanEntity viewer) Opens this station as a virtual view for the given player (no block required).static Toolbox.StationReturns the enum constant of this class with the specified name.static Toolbox.Station[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CRAFTING_TABLE
The c r a f t i n g_ t a b l e( workstation. -
ANVIL
The a n v i l( workstation. -
GRINDSTONE
The g r i n d s t o n e( workstation. -
SMITHING_TABLE
The s m i t h i n g_ t a b l e( workstation. -
STONECUTTER
The s t o n e c u t t e r( workstation. -
LOOM
The l o o m( workstation. -
CARTOGRAPHY_TABLE
The c a r t o g r a p h y_ t a b l e( workstation.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
open
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
nullif it could not be opened
-
getUpgradeKey
Key this station is unlocked under in skilltree JSON.- Returns:
- the upgrade key
-
getIcon
Item shown for this station in the menu.- Returns:
- the icon material
-
getTranslationKey
Vanilla translation key for the station's block name.- Returns:
- the translation key
-