This commit is contained in:
parent
acc7f076e0
commit
c3c82b4478
7 changed files with 285 additions and 96 deletions
|
@ -38,6 +38,7 @@ public class SRPlayer {
|
|||
private Map<Attribute, Map<ItemStack, Double>> itemAttributes = new EnumMap<>(Attribute.class);
|
||||
@Expose private List<PotionEffect> potionEffects = new ArrayList<>();
|
||||
@Expose private Inventory inventory = null;
|
||||
@Expose private List<Integer> treasuresOpened = new ArrayList<>();
|
||||
|
||||
public SRPlayer(@NotNull UUID uuid) {
|
||||
this.uuid = uuid;
|
||||
|
@ -259,4 +260,16 @@ public class SRPlayer {
|
|||
}
|
||||
this.experience = experience;
|
||||
}
|
||||
|
||||
public List<Integer> getTreasuresOpened() {
|
||||
return treasuresOpened;
|
||||
}
|
||||
|
||||
public boolean hasOpenedTreasure(int id) {
|
||||
return treasuresOpened.contains(id);
|
||||
}
|
||||
|
||||
public void addTreasureOpened(int id) {
|
||||
treasuresOpened.add(id);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue