mirror of
https://github.com/filoghost/ChestCommands.git
synced 2024-11-22 10:05:17 +01:00
Remove utilities private constructors
This commit is contained in:
parent
58fee17358
commit
b60bba9aab
@ -31,8 +31,7 @@ public final class MaterialsHelper {
|
||||
// Materials that are considered air (with 1.13+ compatibility)
|
||||
private static final Collection<Material> AIR_MATERIALS = getExistingMaterials("AIR", "CAVE_AIR", "VOID_AIR");
|
||||
|
||||
private MaterialsHelper() {}
|
||||
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
private static Registry<Material> initMaterialsRegistry() {
|
||||
Registry<Material> materialsRegistry = Registry.fromEnumValues(Material.class);
|
||||
|
@ -20,7 +20,6 @@ import java.util.Collection;
|
||||
|
||||
public final class Preconditions {
|
||||
|
||||
private Preconditions() {}
|
||||
|
||||
public static void notNull(Object object, String objectName) {
|
||||
if (object == null) {
|
||||
|
@ -16,8 +16,6 @@ package me.filoghost.chestcommands.util;
|
||||
|
||||
public final class Strings {
|
||||
|
||||
private Strings() {}
|
||||
|
||||
|
||||
public static String[] trimmedSplit(String input, String pattern) {
|
||||
return trimmedSplit(input, pattern, 0);
|
||||
|
@ -23,7 +23,6 @@ import java.util.function.Function;
|
||||
|
||||
public final class CollectionUtils {
|
||||
|
||||
private CollectionUtils() {}
|
||||
|
||||
public static boolean isNullOrEmpty(Collection<?> collection) {
|
||||
return collection == null || collection.isEmpty();
|
||||
|
Loading…
Reference in New Issue
Block a user