// Save settings for this NPC. These values will be added to the citizens // saves.yml under this NPC. public void save(DataKey key) { // key.setBoolean("SomeSetting", SomeSetting); key.setString("NPCType", npcType.name()); key.setString("UnitType", unitType.name()); key.setInt("settleId", settleId); key.setInt("buildingId", buildingId); // System.out.println("[REALMS] Trait save setting : "+key.toString()); }
public void save(DataKey key) { key.setString("shop", this.shop); }
@Override public void save(DataKey key) { key.removeKey("list"); for (int i = 0; i < anchors.size(); i++) key.setString("list." + String.valueOf(i), anchors.get(i).stringValue()); }
@Override public void save(DataKey key) { key.setString("", type.getName()); }