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 Type
    Method
    Description
    void
    Sends the current transformation state to clients.
    void
    transform(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 ticks
      position - the target position
      scale - the target scale
      rotation - the target rotation
      bundler - the packet bundler to use
      Since:
      1.15.2
    • sendTransformation

      void sendTransformation(@NotNull @NotNull PacketBundler bundler)
      Sends the current transformation state to clients.
      Parameters:
      bundler - the packet bundler to use
      Since:
      1.15.2