#get around ResourceLocation from intermedary mapping with yarn mapping

7 messages · Page 1 of 1 (latest)

white vortex
#

Hi,
I would like to know if it is possible to bypass ResourceLocation which is used in JEI with the "intermediary" mapping, I use yarn and I can't change it.
When I want to use the yarn equivalent of ResourceLocation (identifier), I have a typing problem.

JEI :

public interface IModPlugin {
    ResourceLocation getPluginUid();
}

ME:

public class TestModJEIPlugin implements IModPlugin {
    @Override
    public Identifier getPluginUid() {
        return Identifier Identifier(Arg1, Arg2);
    }
}

https://linkie.shedaniel.dev/mappings?namespace=mojang&version=1.21&search=ResourceLocation&translateMode=ns&translateAs=yarn

glad oasis
#

When using dependencies you need to use the mod variants of the normal gradle dependencies. What it does is remap the mods you put in there into the current mapping you are using(in this case it would remap your development jei to use yarn)

#

I think uhhh

#

!!dependencies

pine craneBOT
glad oasis
#

Ye that works

white vortex
#

so we can cheat this way 🤔