예제 #1
0
 public DrawableItemStack(int id, int amount) {
   super(0, 0);
   this.amount = amount;
   this.itemId = id;
   this.setImage(ImageCache.getIcon(this.itemId));
 }
예제 #2
0
 public DrawableItemStack(ItemStack is, int xPos, int yPos) {
   super(xPos, yPos);
   this.amount = is.getAmount();
   this.itemId = is.getItemId();
   this.setImage(ImageCache.getIcon(this.itemId));
 }