Class ResourceUtil

java.lang.Object
dev.engine_room.flywheel.lib.util.ResourceUtil

public final class ResourceUtil extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.resources.ResourceLocation
    Same as ResourceLocation.parse(String), but defaults to Flywheel namespace.
    static net.minecraft.resources.ResourceLocation
    readFlywheelDefault(com.mojang.brigadier.StringReader reader)
    Same as ResourceLocation.read(StringReader), but defaults to Flywheel namespace.
    static net.minecraft.resources.ResourceLocation
    rl(String path)
     
    static String
    toDebugFileNameNoExtension(net.minecraft.resources.ResourceLocation resourceLocation)
    Same as ResourceLocation.toDebugFileName(), but also removes the file extension.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • rl

      public static net.minecraft.resources.ResourceLocation rl(String path)
    • parseFlywheelDefault

      public static net.minecraft.resources.ResourceLocation parseFlywheelDefault(String location)
      Same as ResourceLocation.parse(String), but defaults to Flywheel namespace.
    • readFlywheelDefault

      public static net.minecraft.resources.ResourceLocation readFlywheelDefault(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Same as ResourceLocation.read(StringReader), but defaults to Flywheel namespace.
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • toDebugFileNameNoExtension

      public static String toDebugFileNameNoExtension(net.minecraft.resources.ResourceLocation resourceLocation)
      Same as ResourceLocation.toDebugFileName(), but also removes the file extension.