Package net.glowstone.inventory
Class EnchantmentManager
java.lang.Object
net.glowstone.inventory.EnchantmentManager
-
Constructor Summary
ConstructorsConstructorDescriptionEnchantmentManager(GlowEnchantingInventory inventory, GlowPlayer player) Creates an instance to manage the given enchanting table for the given player. -
Method Summary
Modifier and TypeMethodDescriptionvoidResets the enchantments.voidonPlayerEnchant(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
-