Interface UpdateAnvilEvent
-
- All Superinterfaces:
Cancellable
,Event
public interface UpdateAnvilEvent extends Event, Cancellable
Fires whenever the left and right slots of an anvil are filled and a new result is computed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Transaction<AnvilCost>
costs()
Returns the transaction for the repair costs.Inventory
inventory()
Gets theInventory
.java.lang.String
itemName()
Returns the new item name.ItemStackSnapshot
left()
Returns the left input item.Transaction<ItemStackSnapshot>
result()
Returns the transaction for the resulting item.ItemStackSnapshot
right()
Returns the right input item.-
Methods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelled
-
-
-
-
Method Detail
-
itemName
java.lang.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.
-
-