Interface UpdateAnvilEvent
- All Superinterfaces:
Cancellable
,Event
Fires whenever the left and right slots of an anvil are filled and a new result is computed.
-
Method Summary
Methods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelled
-
Method Details
-
inventory
Inventory inventory()Gets theInventory
.- Returns:
- The inventory
-
itemName
String itemName()Returns the new item name.- Returns:
- The new item name
-
left
ItemStackSnapshot left()Returns the left input item.- Returns:
- The left input item
-
right
ItemStackSnapshot right()Returns the right input item.- Returns:
- The right input item
-
result
Transaction<ItemStackSnapshot> result()Returns the transaction for the resulting item.- Returns:
- The transaction for the resulting item.
-
costs
Transaction<AnvilCost> costs()Returns the transaction for the repair costs.- Returns:
- The transaction for the repair costs.
-