public void moveFromTo(Vector2 first, Vector2 last, Inventory reciever) { if (first.X < 0 || first.X >= width || first.Y < 0 || first.Y >= height) { return; } reciever.setItem(getItem((int) first.X, (int) first.Y), (int) last.X, (int) last.Y); }
public GuiInventory(Inventory inventory) { this.inventory = inventory; this.isHidden = true; }