Esempio n. 1
0
 /**
  * Register your type here, in pre-preInit!
  *
  * @param typeBase the instance you want to register
  * @throws IllegalArgumentException if the name has been taken
  */
 public static void register(TypeBase typeBase) {
   if (map.put(typeBase.getName().toLowerCase(), typeBase) != null)
     throw new IllegalArgumentException("Duplicate type!");
 }