예제 #1
0
파일: PVPClass.java 프로젝트: dags-/PVPDev
 public Builder add(ItemType type, int qty) {
   qty = qty < 0 ? 1 : qty;
   inventory.add(
       new Pair<>(type, qty <= type.getMaxStackQuantity() ? qty : type.getMaxStackQuantity()));
   return this;
 }
예제 #2
0
파일: PVPClass.java 프로젝트: dags-/PVPDev
 public Builder add(ItemType type) {
   inventory.add(new Pair<>(type, type.getMaxStackQuantity()));
   return this;
 }