Class EnchantedBook
- java.lang.Object
-
- me.boboballoon.enhancedenchantments.enchantment.EnchantedBook
-
public class EnchantedBook extends Object
Class that represents an enchantment book
-
-
Field Summary
Fields Modifier and Type Field Description static NamespacedKey
KEY
-
Constructor Summary
Constructors Constructor Description EnchantedBook(Enchantment enchantment, int level)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemStack
getBook()
Returns the itemstack the correlates with this bookEnchantment
getEnchantment()
Returns the enchantment that this book holdsint
getLevel()
Returns the enchantment level that this book holds
-
-
-
Field Detail
-
KEY
public static final NamespacedKey KEY
-
-
Constructor Detail
-
EnchantedBook
public EnchantedBook(Enchantment enchantment, int level)
-
-
Method Detail
-
getEnchantment
public Enchantment getEnchantment()
Returns the enchantment that this book holds- Returns:
- the enchantment that this book holds
-
getLevel
public int getLevel()
Returns the enchantment level that this book holds- Returns:
- the enchantment level that this book holds
-
getBook
public ItemStack getBook()
Returns the itemstack the correlates with this book- Returns:
- the itemstack the correlates with this book
-
-