Package dev.prozilla.pine.core.entity
Interface EntityContext
- All Known Subinterfaces:
EntityProvider,TileProvider
- All Known Implementing Classes:
AnimationData,AudioPlayer,BorderImage,ButtonNode,CameraControlData,CameraData,Component,DynamicText,Entity,FrameNode,GridGroup,ImageNode,LayoutNode,LayoutNodeStyle,MultiTileRenderer,Node,NodeRoot,NodeStyle,NodeStyleBase,ParticleBurstEmitter,ParticleEmitter,ParticleFlowEmitter,ParticleRenderer,PhantomTile,RectRenderer,SpriteRenderer,TextInputNode,TextNode,TileRenderer,TooltipNode,Transform
-
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.booleanisDescendantOf(Transform parent) default booleanisDescendantOf(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.
-