I am trying to use code from a 1.21 API (https://github.com/Mortimer-Kerman/GravityChanger) in my mod. I have copied the relevant code over, but most of the imports from net.minecraft cannot be resolved.
I think it's because the API and my mod use different versions of Yarn.
The API uses Yarn mappings 1.21+build.2
My mod uses Yarn mappings 1.21+build.3
For example, I'm pretty sure net.minecraft.world.entity.Entity should be net.minecraft.entity.Entity
My problem is that there are a lot of them, some of which I cannot figure out what they should be changed to, e.g. import net.minecraft.world.phys.Vec3;
So (a) is there a way to automatically change these? or
(b) how can I find out what the changes should be
A fabric mod and api that lets you change player gravity direction - Mortimer-Kerman/GravityChanger