예제 #1
0
 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();
 }
예제 #2
0
 @Override
 public Item getTargetItem() {
   return targetItem.clone();
 }
예제 #3
0
 @Override
 public Item getSourceItem() {
   return sourceItem.clone();
 }