Interface EnchantItemEvent
-
- All Superinterfaces:
Cancellable
,Event
,InteractContainerEvent
- All Known Subinterfaces:
EnchantItemEvent.CalculateEnchantment
,EnchantItemEvent.CalculateLevelRequirement
,EnchantItemEvent.Post
public interface EnchantItemEvent extends InteractContainerEvent
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
EnchantItemEvent.CalculateEnchantment
Triggers when the enchantments for an item are calculated.static interface
EnchantItemEvent.CalculateLevelRequirement
Triggers when the enchantment costs for an item are calculated.static interface
EnchantItemEvent.Post
This event is triggered when an item is enchanted at an enchanting table.-
Nested classes/interfaces inherited from interface org.spongepowered.api.event.item.inventory.container.InteractContainerEvent
InteractContainerEvent.Close, InteractContainerEvent.Open
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
option()
The enchantment option.int
seed()
The seed for pseudo random enchantment generation.-
Methods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelled
-
Methods inherited from interface org.spongepowered.api.event.item.inventory.container.InteractContainerEvent
container, cursorTransaction
-
-