add level to SRPlayer
This commit is contained in:
parent
8111b2b8f2
commit
84f7cd9786
1 changed files with 5 additions and 0 deletions
|
@ -23,6 +23,7 @@ import org.jetbrains.annotations.Nullable;
|
|||
public class SRPlayer {
|
||||
|
||||
@Expose private UUID uuid = null;
|
||||
@Expose private int level = 0;
|
||||
@Expose private HashMap<Attribute, Double> attributes = new HashMap<>();
|
||||
private HashMap<Attribute, HashMap<ItemStack, Double>> itemAttributes = new HashMap<>();
|
||||
@Expose private List<PotionEffect> potionEffects;
|
||||
|
@ -209,4 +210,8 @@ public class SRPlayer {
|
|||
return itemAttributes.getOrDefault(attribute, new HashMap<>()).values().stream()
|
||||
.reduce(0.0, Double::sum);
|
||||
}
|
||||
|
||||
public int getLevel() {
|
||||
return level;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue