Package kr.toxicity.model.api.nms
Interface DisplayTransformer
public interface DisplayTransformer
Handles the transformation (position, scale, rotation) of a display entity.
This interface abstracts the interpolation logic for smooth animations.
- Since:
- 1.15.2
-
Method Summary
Modifier and TypeMethodDescriptionvoidsendTransformation(@NotNull PacketBundler bundler) Sends the current transformation state to clients.voidtransform(int duration, @NotNull org.joml.Vector3f position, @NotNull org.joml.Vector3f scale, @NotNull org.joml.Quaternionf rotation, @NotNull PacketBundler bundler) Applies a transformation to the display.
-
Method Details
-
transform
void transform(int duration, @NotNull @NotNull org.joml.Vector3f position, @NotNull @NotNull org.joml.Vector3f scale, @NotNull @NotNull org.joml.Quaternionf rotation, @NotNull @NotNull PacketBundler bundler) Applies a transformation to the display.- Parameters:
duration- the interpolation duration in ticksposition- the target positionscale- the target scalerotation- the target rotationbundler- the packet bundler to use- Since:
- 1.15.2
-
sendTransformation
Sends the current transformation state to clients.- Parameters:
bundler- the packet bundler to use- Since:
- 1.15.2
-