public void set (CommandExecutor ce, String s) { reset(); setString = s.toLowerCase(); Array<Method> methods = getAllMethods(ce); for (Method m : methods) { String name = m.getName(); if (name.toLowerCase().startsWith(setString) && ConsoleUtils.canDisplayCommand(ce.console, m)) { possibleCommands.add(name); } } iterator = new ObjectSetIterator<>(possibleCommands); }
private void injectRequestedAssets() { for (final ObjectSetIterator<AssetInjection> iterator = assetInjections.iterator(); iterator.hasNext();) { final AssetInjection assetInjection = iterator.next(); if (assetInjection.inject(this)) { assetInjection.removeScheduledAssets(scheduledAssets); iterator.remove(); } } }