Package me.deecaad.core.utils
Interface TransformLike
- All Known Subinterfaces:
Emitter
- All Known Implementing Classes:
AbstractEmitter,DisplayEntityEmitter,EntityTransform,FakeEntity,ParticleEmitter,Transform
public interface TransformLike
-
Method Details
-
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 mutategetTransform()from here. -
update
default void update()Called once per tick by a ticking system (e.g.me.deecaad.core.tick.TickManagerviaTransformTree). 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.
-