source
Source for my MapleSolaxiaV2 (v83 MapleStory).
This commit is contained in:
53
src/client/inventory/ModifyInventory.java
Normal file
53
src/client/inventory/ModifyInventory.java
Normal file
@@ -0,0 +1,53 @@
|
||||
package client.inventory;
|
||||
|
||||
import constants.ItemConstants;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author kevin
|
||||
*/
|
||||
public class ModifyInventory {
|
||||
|
||||
private int mode;
|
||||
private Item item;
|
||||
private short oldPos;
|
||||
|
||||
public ModifyInventory(final int mode, final Item item) {
|
||||
this.mode = mode;
|
||||
this.item = item.copy();
|
||||
}
|
||||
|
||||
public ModifyInventory(final int mode, final Item item, final short oldPos) {
|
||||
this.mode = mode;
|
||||
this.item = item.copy();
|
||||
this.oldPos = oldPos;
|
||||
}
|
||||
|
||||
public final int getMode() {
|
||||
return mode;
|
||||
}
|
||||
|
||||
public final int getInventoryType() {
|
||||
return ItemConstants.getInventoryType(item.getItemId()).getType();
|
||||
}
|
||||
|
||||
public final short getPosition() {
|
||||
return item.getPosition();
|
||||
}
|
||||
|
||||
public final short getOldPosition() {
|
||||
return oldPos;
|
||||
}
|
||||
|
||||
public final short getQuantity() {
|
||||
return item.getQuantity();
|
||||
}
|
||||
|
||||
public final Item getItem() {
|
||||
return item;
|
||||
}
|
||||
|
||||
public final void clear() {
|
||||
this.item = null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user