#Using Identifier class in fabric

1 messages · Page 1 of 1 (latest)

errant palmBOT
#

<@&987246652869971988> please have a look, thanks.

fair flame
#

@jaunty current please use /help-thread close rather than deleting your initial post.

jaunty current
#

oh sorry

#

I actually still need help

#

if thats okay

fair flame
#

Sure.

#

Doing it this way leaves dangling ghost threads nobody can act upon.

jaunty current
#

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
fair flame
#

I'd use getClass().getResource(x).

jaunty current
#

in file?

dull phoenix
#

this isnt how to get resources from the game

jaunty current
#

it just threw a null error

jaunty current
dull phoenix
#

what are you trying to do

jaunty current
#

replace minecrafts panorama with my own

dull phoenix
#

just use a resource pack

jaunty current
#

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

dull phoenix
#

sure, but do things the correct way

#

or youll be fighting an uphill battle

jaunty current
#

I noticed that they removed resourceLocation in the newer versions

#

is identifier not the replacement?

dull phoenix
#

those are different mappings

#

resource location is what mojang uses

#

fabric uses yarn

jaunty current
#

I should've just stuck to mojang mapping

#

so what do I do instead of resource location

jaunty current
#

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?