Package dev.dhyces.trimmed.api.util
Class Utils
java.lang.Object
dev.dhyces.trimmed.api.util.Utils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringdelimitIfDefault(net.minecraft.resources.ResourceLocation location, char delimiter) static <T> StringnamespacedLocation(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> registryResourceKey) Creates a directory path for registered objects.static StringnamespacedPath(net.minecraft.resources.ResourceLocation location) static <T> TunsafeCast(Object o)
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
namespacedLocation
public static <T> String namespacedLocation(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> registryResourceKey) Creates a directory path for registered objects. Vanilla does not have the namespace, however modded registries should have a parent directory with the mod's namespace -
namespacedPath
-
delimitIfDefault
public static String delimitIfDefault(net.minecraft.resources.ResourceLocation location, char delimiter) -
unsafeCast
-