public BaseTransaction(Inventory inventory, int slot, Item sourceItem, Item targetItem) { this.inventory = inventory; this.slot = slot; this.sourceItem = sourceItem.clone(); this.targetItem = targetItem.clone(); this.creationTime = System.currentTimeMillis(); }
@Override public Item getTargetItem() { return targetItem.clone(); }
@Override public Item getSourceItem() { return sourceItem.clone(); }