Beispiel #1
0
  @Override
  public void readFromSave(DataTag data) {
    super.readFromSave(data);

    health = data.readInt("health");
  }
Beispiel #2
0
  @Override
  public void writeToSave(DataTag data) {
    super.writeToSave(data);

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