Exemple #1
0
  public final ResearchMap getParentMap() {
    if (Skills.mapExists(mapName)) {
      return Skills.getResearchMap(mapName);
    }

    return null;
  }
Exemple #2
0
  static void registerDeserializer(String id, Function<NBTTagCompound, ResearchNode> des) {
    Skills.log().info("Registering deserializer function with ID " + id);

    if (deserializers.containsKey(id)) {
      throw new IllegalArgumentException("Node deserializer " + id + " already exists");
    }

    deserializers.put(id, des);
  }