Contents
Interface Transaction
- All Known Implementing Classes:
ClearTransaction, ItemStackSlotTransaction, ItemStackTransaction, ListTransaction, MaterialSlotTransaction, MaterialTransaction, MoveTransaction, ResourceSlotTransaction, ResourceTransaction, SlotTransaction, TagSlotTransaction, TagTransaction
public interface Transaction
- Since:
- 18/3/17.
- Version:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionfromParent(ItemContainer parent, short start, ItemContainer container) Transforms this transactions data from referencing about a slot in the provided parent to a slot in the provided container.booleantoParent(ItemContainer parent, short start, ItemContainer container) Transforms this transactions data from referencing about a slot in the provided container to a slot in the provided parent.booleanwasSlotModified(short slot)
-
Method Details
-
succeeded
boolean succeeded() -
wasSlotModified
boolean wasSlotModified(short slot) -
toParent
Transforms this transactions data from referencing about a slot in the provided container to a slot in the provided parent.- Returns:
- A transaction with data about the parent container.
-
fromParent
Transforms this transactions data from referencing about a slot in the provided parent to a slot in the provided container.- Returns:
- A transaction with data about the parent container or
nullif the transaction doesn't refer to the container at all.
-