Archived
0
This repository has been archived on 2022-03-25. You can view files and clone it, but cannot push or open issues or pull requests.
Files
PrisonAPI/src/main/java/ru/prisonlife/api/template/Stats.java

69 lines
1.5 KiB
Java

package ru.prisonlife.api.template;
public class Stats extends AbstractApiData {
public Stats(Prisoner me) {
super(me);
}
public void setServerTime(int value) {
getPlayerStatsEntity().setServerTime(value);
}
public int getServerTime() {
return getPlayerStatsEntity().getServerTime();
}
public void addServerTime(int value) {
setServerTime(getServerTime() + value);
}
public void setBlocks(int value) {
getPlayerStatsEntity().setBlocks(value);
}
public int getBlocks() {
return getPlayerStatsEntity().getBlocks();
}
public void addBlocks(int value) {
setBlocks(getBlocks() + value);
}
public void setPlayers(int value) {
getPlayerStatsEntity().setPlayers(value);
}
public int getPlayers() {
return getPlayerStatsEntity().getPlayers();
}
public void addPlayers(int value) {
setPlayers(getPlayers() + value);
}
public void setMobs(int value) {
getPlayerStatsEntity().setMobs(value);
}
public int getMobs() {
return getPlayerStatsEntity().getMobs();
}
public void addMobs(int value) {
setMobs(getMobs() + value);
}
public void setDeaths(int value) {
getPlayerStatsEntity().setDeaths(value);
}
public int getDeaths() {
return getPlayerStatsEntity().getDeaths();
}
public void addDeaths(int value) {
setDeaths(getDeaths() + value);
}
}