Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

28 errors #3

Open
harrypotteryeah opened this issue Aug 15, 2022 · 8 comments
Open

28 errors #3

harrypotteryeah opened this issue Aug 15, 2022 · 8 comments

Comments

@harrypotteryeah
Copy link

i just copy pasted this to use and it raised 28 errors and 15 warnings im using intellij
it cant resolve the
vector3f
cross()
normalize()
rotate()
getdegreesquaternion(float)
rayTrace in Projectile util
RayTraceContext
isSpectator()
collides()

and it says this 'Vec3d(net.minecraft.util.math.Vec3f)' in 'net.minecraft.util.math.Vec3d' cannot be applied to '(Vector3f)'
which i think causes all other problems

@harrypotteryeah
Copy link
Author

Found what caused it vector3f s are now vec3f so change every vector3f to vec3f

@harrypotteryeah
Copy link
Author

even if you fix the vector3f errors theres still 8 cannot resolve errors
which are
-rayTrace in ProjectileUtil
-RayTraceContext
-rayTrace in 'World'
-collides()
-isSpectator()

@EmmanuelMess
Copy link
Owner

Which Minecraft version?

@harrypotteryeah
Copy link
Author

1.18.2

@EmmanuelMess
Copy link
Owner

1.18.2

Okay, this was made for 1.16.1, I would compare the raytrace code to the Minecraft source raytrace functions and go from what's different. Here is the essence of the mod. I don't have time to update the mod right now.

@EmmanuelMess
Copy link
Owner

From your errors, I would check if ProjectileUtil.raycast changed in signature, and would look for examples of use in the MInecraft source.

@harrypotteryeah
Copy link
Author

i have no idea what minecraft class uses raycasting thanks for at least answering though

@EmmanuelMess
Copy link
Owner

i have no idea what minecraft class uses raycasting thanks for at least answering though

The one that handles setting the block name above the item bar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants