Fixed javadoc, updated Kingdoms

This commit is contained in:
Auxilor
2023-04-20 17:42:46 +01:00
parent 5473bb8ef8
commit 14e2ead488
4 changed files with 3 additions and 1 deletions

View File

@@ -37,6 +37,7 @@ public class IntegrationRegistry<T extends Integration> extends Registry<T> {
* If any integrations return true, safely.
*
* @param predicate The predicate to test.
* @return If any integrations return true.
*/
public boolean anySafely(@NotNull final Predicate<T> predicate) {
for (T integration : new HashSet<>(this.values())) {
@@ -122,6 +123,7 @@ public class IntegrationRegistry<T extends Integration> extends Registry<T> {
* If all integrations return true, safely.
*
* @param predicate The predicate to test.
* @return If all integrations return true.
*/
public boolean allSafely(@NotNull final Predicate<T> predicate) {
return !this.anySafely(predicate.negate());