public class SlotTransaction extends Transaction<ItemStackSnapshot>
Constructor and Description |
---|
SlotTransaction(Slot slot,
ItemStackSnapshot original,
ItemStackSnapshot defaultReplacement)
|
Modifier and Type | Method and Description |
---|---|
Slot |
getSlot()
Gets the
Slot of this SlotTransaction . |
void |
setCustom(ItemStack stack)
Sets the custom
ItemStack output of this
SlotTransaction . |
String |
toString() |
equals, getContentVersion, getCustom, getDefault, getFinal, getIntermediary, getOriginal, hashCode, isValid, setCustom, setValid, toContainer
public SlotTransaction(Slot slot, ItemStackSnapshot original, ItemStackSnapshot defaultReplacement)
slot
- The slotoriginal
- The original item stack snapshotdefaultReplacement
- The replacement item stack snapshotpublic void setCustom(ItemStack stack)
ItemStack
output of this
SlotTransaction
.stack
- The stackpublic Slot getSlot()
Slot
of this SlotTransaction
.public String toString()
toString
in class Transaction<ItemStackSnapshot>