Enum Class O2BookType
- All Implemented Interfaces:
Serializable,Comparable<O2BookType>,Constable
Enum of all available Ollivanders2 books.
Each book type contains metadata including:
- The implementing class that defines the book's spells/potions
- Full and short display titles (configurable via translations)
- Author name
- Magic branch (Charms, Potions, Transfiguration, etc.)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionReturns the author of the book.Return the branch of magic this book is.@NotNull Class<?> Get the class for this typegetShortTitle(@NotNull Ollivanders2 p) Returns the short title for the book's item lore display.getTitle(@NotNull Ollivanders2 p) Returns the full title for the book.static O2BookTypeReturns the enum constant of this class with the specified name.static O2BookType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
A_BEGINNERS_GUIDE_TO_TRANSFIGURATION
-
ACHIEVEMENTS_IN_CHARMING
-
ADVANCED_FIREWORKS
-
ADVANCED_POTION_MAKING
-
ADVANCED_TRANSFIGURATION
-
BASIC_FIREWORKS
-
BASIC_HEXES
-
BOOK_OF_POTIONS
-
BREAK_WITH_A_BANSHEE
-
CHADWICKS_CHARMS_VOLUME_1
-
CHARMING_COLORS
-
CONFRONTING_THE_FACELESS
-
CURSES_AND_COUNTERCURSES
-
DE_MEDICINA_PRAECEPTA
-
DEFENSE_AGAINST_THE_DARK_ARTS
-
ESSENTIAL_DARK_ARTS
-
EXTREME_INCANTATIONS
-
FOR_THE_GREATER_GOOD
-
GADDING_WITH_GHOULS
-
HARMONIOUS_CONNECTIONS
-
HOLIDAYS_WITH_HAGS
-
INTERMEDIATE_TRANSFIGURATION
-
JINXES_FOR_THE_JINXED
-
MAGICAL_DRAFTS_AND_POTIONS
-
MAGICK_MOSTE_EVILE
-
MODERN_MAGICAL_TRANSPORTATION
-
MOSTE_POTENTE_POTIONS
-
NUMEROLOGY_AND_GRAMMATICA
-
OMENS_ORACLES_AND_THE_GOAT
-
POTION_OPUSCULE
-
PRACTICAL_DEFENSIVE_MAGIC
-
QUINTESSENCE_A_QUEST
-
SECRETS_OF_THE_DARKEST_ART
-
SECRETS_OF_WANDLORE
-
STANDARD_BOOK_OF_SPELLS_GRADE_1
-
STANDARD_BOOK_OF_SPELLS_GRADE_2
-
STANDARD_BOOK_OF_SPELLS_GRADE_3
-
STANDARD_BOOK_OF_SPELLS_GRADE_4
-
STANDARD_BOOK_OF_SPELLS_GRADE_5
-
STANDARD_BOOK_OF_SPELLS_GRADE_6
-
STANDARD_BOOK_OF_SPELLS_GRADE_7
-
TETRABIBLIOS
-
THE_DARK_FORCES
-
THE_HEALERS_HELPMATE
-
TRAVELS_WITH_TROLLS
-
UNFOGGING_THE_FUTURE
-
VOYAGES_WITH_VAMPIRES
-
WANDERINGS_WITH_WEREWOLVES
-
YEAR_WITH_A_YETI
-
-
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
-
getClassName
Get the class for this type- Returns:
- the class name
-
getShortTitle
Returns the short title for the book's item lore display.Checks configuration for translations first. Falls back to the default short title which is truncated to 32 characters if needed.
- Parameters:
p- the Ollivanders2 plugin- Returns:
- the short title of the book
-
getTitle
Returns the full title for the book.Checks configuration for translations first. Falls back to the default full title.
- Parameters:
p- the Ollivanders2 plugin- Returns:
- the full title of the book
-
getAuthor
Returns the author of the book.- Returns:
- the author of the book
-
getBranch
Return the branch of magic this book is.- Returns:
- the branch of magic for this book
-