Package dev.prozilla.pine.core.entity
Interface EntityContext
- All Known Subinterfaces:
EntityProvider
,TileProvider
- All Known Implementing Classes:
AnimationData
,BorderImage
,ButtonNode
,CameraControlData
,CameraData
,Component
,DynamicText
,Entity
,FrameNode
,GridGroup
,ImageNode
,LayoutNode
,LayoutNodeStyle
,MultiTileRenderer
,Node
,NodeRoot
,NodeStyle
,NodeStyleBase
,ParticleBurstEmitter
,ParticleEmitter
,ParticleFlowEmitter
,ParticleRenderer
,PhantomTile
,SpriteRenderer
,TextNode
,TileRenderer
,TooltipNode
,Transform
public interface EntityContext
-
Method Summary
Modifier and TypeMethodDescriptiongetChildWithTag
(String tag) Gets a child entity with a given tag.getParentWithTag
(String tag) Gets a parent entity with a given tag.boolean
isDescendantOf
(Transform parent) default boolean
isDescendantOf
(Entity parent)
-
Method Details
-
getFirstChild
Entity getFirstChild() -
getLastChild
Entity getLastChild() -
isDescendantOf
-
isDescendantOf
-
getChildWithTag
Gets a child entity with a given tag.- Parameters:
tag
- Tag of the child entity.- Returns:
- The child entity with the given tag, or null if there isn't one.
-
getParentWithTag
Gets a parent entity with a given tag.- Parameters:
tag
- Tag of the parent entity.- Returns:
- The parent entity with the given tag, or null if there isn't one.
-