Class SlotTransaction
java.lang.Object
org.spongepowered.api.data.Transaction<ItemStackSnapshot>
org.spongepowered.api.item.inventory.transaction.SlotTransaction
- All Implemented Interfaces:
DataSerializable
-
Constructor Summary
ConstructorsConstructorDescriptionSlotTransaction(Slot slot, ItemStackSnapshot original, ItemStackSnapshot defaultReplacement) -
Method Summary
Modifier and TypeMethodDescriptionvoidSets the customItemStackoutput of thisSlotTransaction.slot()Gets theSlotof thisSlotTransaction.toString()Methods inherited from class org.spongepowered.api.data.Transaction
contentVersion, custom, defaultReplacement, equals, finalReplacement, hashCode, intermediary, invalidate, isValid, original, setCustom, setValid, toContainer, validate
-
Constructor Details
-
SlotTransaction
- Parameters:
slot- The slotoriginal- The original item stack snapshotdefaultReplacement- The replacement item stack snapshot
-
-
Method Details
-
setCustom
Sets the customItemStackoutput of thisSlotTransaction.- Parameters:
stack- The stack
-
slot
Gets theSlotof thisSlotTransaction.- Returns:
- The slot of this transaction
-
toString
- Overrides:
toStringin classTransaction<ItemStackSnapshot>
-