public static void copyTemplates() throws IOException { for (TypeBase type : map.values()) { type.copyTemplateFile(HTMLGenerator.templateFolder); } }
/** * Internal method * * @param configuration passed on to types */ public static void doConfig(Configuration configuration) { for (TypeBase type : map.values()) { type.doConfig(configuration); } }
public static void registerPermissions() { for (TypeBase type : map.values()) { PermissionsHandler.register(type.getPermissionNodes()); } }
/** * 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!"); }