#Using Identifier class in fabric
1 messages · Page 1 of 1 (latest)
@jaunty current please use /help-thread close rather than deleting your initial post.
sorry yeah I thought I pressed close
File f = new File(i.getPath());
if(f.exists()) {
LOGGER.info("PATH EXISTS");
} else {
LOGGER.info("NO PATH FOUND");
}```
Why am I not able to find this path it fully exists in my fabric resource folder
I'd use getClass().getResource(x).
in file?
this isnt how to get resources from the game
it just threw a null error
how do you do it then
what are you trying to do
replace minecrafts panorama with my own
just use a resource pack
using mixins to replace the file location
im adding a bunch of my own tweks to the game
also I want to get familiar with fabric
I noticed that they removed resourceLocation in the newer versions
is identifier not the replacement?
those are different mappings
resource location is what mojang uses
fabric uses yarn
I should've just stuck to mojang mapping
so what do I do instead of resource location
I managed to get an inputstream to work but one of the paramters in the game code only takes the Identifier class. Can someone just show me how to make identifier not call on the run file location and call on my resources folder instead?