Ported AI Goals to 26.1.x#2650
Conversation
|
I think snapTo in 26.1 is equal to moveTo in 1.21.1 though, at least in methods like Entity.copyPosition. |
I was able to compare the decompiled source code and this is correct. Let's go with snapTo() for those two cases. |
|
maybe cast check is unnecessary since |
This reverts commit d80fb6b.
|
By the way, there is a getServerlLevel(...) method available in the Goal classes that can take a Level or Entity. This is probably a better option than casting everywhere(even if it is safe). It does cast internally, but it is what Mojang would prefer to be used and you never know if they will change the implementation to add any additional guards or logging. |
a6tumn
left a comment
There was a problem hiding this comment.
This looks very close to being ready, see my previous comment for requested changes.
a6tumn
left a comment
There was a problem hiding this comment.
Thank you for addressing my comments, that will be all from me.
Thank you for your time and attention! |
No description provided.