Class ResourceUtil
java.lang.Object
dev.engine_room.flywheel.lib.util.ResourceUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.resources.ResourceLocationparseFlywheelDefault(String location) Same asResourceLocation(String), but defaults to Flywheel namespace.static net.minecraft.resources.ResourceLocationreadFlywheelDefault(com.mojang.brigadier.StringReader reader) Same asResourceLocation.read(StringReader), but defaults to Flywheel namespace.static StringtoDebugFileNameNoExtension(net.minecraft.resources.ResourceLocation resourceLocation) Same asResourceLocation.toDebugFileName(), but also removes the file extension.
-
Method Details
-
parseFlywheelDefault
Same asResourceLocation(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 asResourceLocation.read(StringReader), but defaults to Flywheel namespace.- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
toDebugFileNameNoExtension
public static String toDebugFileNameNoExtension(net.minecraft.resources.ResourceLocation resourceLocation) Same asResourceLocation.toDebugFileName(), but also removes the file extension.
-