Package dev.prozilla.pine.core.entity
Interface EntityContext
- All Known Subinterfaces:
EntityProvider,TileProvider
- All Known Implementing Classes:
AnimationData,AudioEffectPlayer,AudioPlayer,BorderImage,ButtonNode,CameraControlData,CameraData,CircleCollider,CircleRenderer,Collider,Component,DeserializedData,DevConsoleData,DynamicText,Entity,FrameNode,GridGroup,ImageNode,LayoutNode,LayoutNodeStyle,MultiTileRenderer,Node,NodeRoot,NodeStyle,NodeStyleBase,ParticleBurstEmitter,ParticleEmitter,ParticleFlowEmitter,ParticleRenderer,PhantomTile,QuadRenderer,RectCollider,RectRenderer,ShapeRenderer,SpriteRenderer,TextInputNode,TextNode,TileRenderer,TooltipNode,Transform
-
Method Summary
Modifier and TypeMethodDescriptiongetChild(int i) getChildWithTag(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() -
getChild
-
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.
-