yurisuika / Raised

Raises the hotbar so the selector is not cut off!
GNU Lesser General Public License v3.0
17 stars 5 forks source link

Provide distance info for other mods #9

Closed intact closed 2 years ago

intact commented 2 years ago

With this change, other Fabric mods can do something like:

int y = this.scaledHeight - 23;
if (FabricLoader.getInstance().getObjectShare().get("raised:distance") instanceof Integer distance) {
    y -= distance;
}
yurisuika commented 2 years ago

Interesting, but the question is will it ever be used? Nonetheless, it can't hurt. Thanks!

intact commented 2 years ago

Interesting, but the question is will it ever be used?

I need that for my mod :) https://github.com/intact/arrows-info/issues/1

yurisuika commented 2 years ago

Cool, sorry this has taken a while I've been in a haze. I tried to ask if there were something comparable in Forge and they decide to be childish and delete the question instead of being communicative and answering, so for now this will only be a Fabric thing, I suppose.

yurisuika commented 2 years ago

Just finishing up making it all neat and tidy with the new config as well. It looks like you haven't pushed an update for Arrows Info... I'll apply your example to it and hopefully it all works out fine. Just had to change it slightly to make it compatible with the config.

yurisuika commented 2 years ago

2022-05-19_05 18 48 Hurry, it works as intended! I'll cite your mod as an example of how to do this! :) Cool mod by the way, very useful info.

intact commented 2 years ago

It looks like you haven't pushed an update for Arrows Info...

I have update ready, i was just waiting for version tag. And thank you for that change, i dont have to implement config (yet). :)