Пример #1
0
  @Override
  public void readFromSave(DataTag data) {
    super.readFromSave(data);

    health = data.readInt("health");
  }
Пример #2
0
  @Override
  public void writeToSave(DataTag data) {
    super.writeToSave(data);

    data.writeInt("health", health);
  }