This commit is contained in:
Draycia committed 2020-09-09 20:45:20 -07:00
1 parent a47ff4e7b2
commit 29bdcc8061
48 files changed
+303 -307

No files matched your search

@@ -9,11 +9,15 @@ public final class FunctionalityConstants {
public static final boolean HAS_HOVER_EVENT_METHOD = noThrow(() -> ItemFactory.class.getMethod("hoverContentOf", ItemStack.class));
private static boolean noThrow(@NonNull ThrowingRunnable runnable) {
private FunctionalityConstants() {
}
private static boolean noThrow(@NonNull final ThrowingRunnable runnable) {
try {
runnable.run();
return true;
} catch (Exception ex) {
} catch (final Exception ex) {
return false;
}
}