-
-
Notifications
You must be signed in to change notification settings - Fork 213
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
TeleportDuration Key for Display Entities #4020
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at Minecraft's sources they seem to clamp this between 0 and 59 on serialization. Either we should do that too or serialize them internally separately.
In general, where is this useful? What can you do with this that is not possible with the transformation interpolation?
src/main/java/org/spongepowered/common/data/provider/entity/DisplayEntityData.java
Outdated
Show resolved
Hide resolved
testplugins/src/main/java/org/spongepowered/test/entity/DisplayEntityTest.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Joni Aromaa <[email protected]>
It is my understanding that Transformations don't actually move the entity. In this case the teleportation is explicitly moving the entity and interpolating it from one spot to the other. So with transformations you'd have to actively update the entities position to match behavior if I understand correctly. |
teleport_duration
was added in MC 1.20.2SpongePowered/SpongeAPI#2508 | Sponge