Class Utils

java.lang.Object
dev.dhyces.trimmed.api.util.Utils

public final class Utils extends Object
  • 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

      public static String namespacedPath(net.minecraft.resources.ResourceLocation location)
    • delimitIfDefault

      public static String delimitIfDefault(net.minecraft.resources.ResourceLocation location, char delimiter)
    • unsafeCast

      public static <T> T unsafeCast(Object o)