Example #1
0
 // 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());
 }
Example #2
0
 public void save(DataKey key) {
   key.setString("shop", this.shop);
 }
Example #3
0
 @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());
 }
Example #4
0
 @Override
 public void save(DataKey key) {
   key.setString("", type.getName());
 }