experience sharing when killing mob

This commit is contained in:
unurled 2024-03-14 18:24:33 +01:00
parent 62f036b2af
commit ea28a9ce69
Signed by: unurled
GPG key ID: FDBC9CBE1F82423F
3 changed files with 71 additions and 1 deletions

View file

@ -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;
}
}