Package net.glowstone.inventory
Class EnchantmentManager
java.lang.Object
net.glowstone.inventory.EnchantmentManager
-
Constructor Summary
ConstructorDescriptionEnchantmentManager
(GlowEnchantingInventory inventory, GlowPlayer player) Creates an instance to manage the given enchanting table for the given player. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Resets the enchantments.void
onPlayerEnchant
(int clicked) Handles a click on an enchantment button.
-
Constructor Details
-
EnchantmentManager
Creates an instance to manage the given enchanting table for the given player.- Parameters:
inventory
- the enchanting tableplayer
- the user
-
-
Method Details
-
invalidate
public void invalidate()Resets the enchantments. -
onPlayerEnchant
public void onPlayerEnchant(int clicked) Handles a click on an enchantment button.- Parameters:
clicked
- The button that was clicked
-