experience sharing when killing mob
This commit is contained in:
parent
62f036b2af
commit
ea28a9ce69
3 changed files with 71 additions and 1 deletions
|
@ -23,7 +23,8 @@ import org.jetbrains.annotations.Nullable;
|
|||
public class SRPlayer {
|
||||
|
||||
@Expose private UUID uuid = null;
|
||||
@Expose private int level = 0;
|
||||
@Expose private int level = 1;
|
||||
@Expose private Long experience = 0L;
|
||||
private double health = 100;
|
||||
@Expose private HashMap<Attribute, Double> attributes = new HashMap<>();
|
||||
private HashMap<Attribute, HashMap<ItemStack, Double>> itemAttributes = new HashMap<>();
|
||||
|
@ -235,4 +236,12 @@ public class SRPlayer {
|
|||
public void setHealth(double health) {
|
||||
this.health = health;
|
||||
}
|
||||
|
||||
public Long getExperience() {
|
||||
return experience;
|
||||
}
|
||||
|
||||
public void setExperience(Long experience) {
|
||||
this.experience = experience;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue