Class SlotTransaction
java.lang.Object
org.spongepowered.api.data.Transaction<ItemStackSnapshot>
org.spongepowered.api.item.inventory.transaction.SlotTransaction
- All Implemented Interfaces:
DataSerializable
-
Constructor Summary
ConstructorDescriptionSlotTransaction
(Slot slot, ItemStackSnapshot original, ItemStackSnapshot defaultReplacement) -
Method Summary
Modifier and TypeMethodDescriptionvoid
setCustom
(ItemStackLike stack) Sets the customItemStackLike
output of thisSlotTransaction
.slot()
Gets theSlot
of 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 customItemStackLike
output of thisSlotTransaction
.- Parameters:
stack
- The stack
-
slot
Gets theSlot
of thisSlotTransaction
.- Returns:
- The slot of this transaction
-
toString
- Overrides:
toString
in classTransaction<ItemStackSnapshot>
-