summaryrefslogtreecommitdiffstats
path: root/Essentials/src/com/earth2me/essentials/user/Inventory.java
blob: 0812f54a090d405248692a33bfdfe0b25267e3b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package com.earth2me.essentials.user;

import com.earth2me.essentials.storage.MapKeyType;
import com.earth2me.essentials.storage.MapValueType;
import com.earth2me.essentials.storage.StorageObject;
import java.util.HashMap;
import java.util.Map;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.bukkit.Material;
import org.bukkit.inventory.ItemStack;


@Data
@EqualsAndHashCode(callSuper = false)
public class Inventory implements StorageObject
{
	private int size;
	@MapKeyType(Integer.class)
	@MapValueType(ItemStack.class)
	private Map<Integer, ItemStack> items = new HashMap<Integer, ItemStack>();

	public Inventory()
	{
		items.put(1, new ItemStack(Material.APPLE, 64));
	}
}