
Add some features for ElementHolder
Opened this issue ยท 1 comments
ElementHolder
can inheritonTick
to do something when it ticks. Instead, I suggest adding a callbacks on tick toElementHolder
orVirtualElement
. This is useful when writing in the Builder or DSL style.- When
ElementHolder
'sVirtualElement
s are riding on Entity,notifyElementsOfPositionUpdate
is called every tick, so trembling occurs. So I suggest adding a property to determine whether to callnotifyElementsOfPositionUpdate
or not. - To check if a particular
ElementHolder
is attached to a target, create and use a class that inheritsElementHolder
, call theElementHolder
s using impl, and then check if an instance of that class is included. So, I suggest to make sureElementHolder
can be identified byString
orIdentifier
, and api can check if a specificElementHolder
is already attached to the target.