Interface TransformLike

All Known Subinterfaces:
Emitter
All Known Implementing Classes:
AbstractEmitter, DisplayEntityEmitter, EntityTransform, FakeEntity, ParticleEmitter, Transform

public interface TransformLike
Something that can participate in a Transform hierarchy. Implementing classes only need to expose their Transform node; the hierarchy (parent/children) lives inside the Transform itself.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Called when this object's world transform may have changed (e.g.
    @NotNull Transform
    The transform node that places this object in a transform hierarchy.
    default void
    Called once per tick by a ticking system (e.g.
  • Method Details

    • getTransform

      @NotNull @NotNull Transform getTransform()
      The transform node that places this object in a transform hierarchy.
      Returns:
      The non-null transform.
    • applyTransform

      default void applyTransform()
      Called when this object's world transform may have changed (e.g. a parent moved). Apply it to the real world. Implementations must not mutate getTransform() from here.
    • update

      default void update()
      Called once per tick by a ticking system (e.g. me.deecaad.core.tick.TickManager via TransformTree). Dynamic transforms (ones that track an external source or animate over time) override this to recompute their local transform and propagate the change to children. Implementations must not restructure the tree from here.