Package dev.prozilla.pine.core.entity
Interface EntityProvider
- All Superinterfaces:
EntityContext
- All Known Subinterfaces:
TileProvider
- All Known Implementing Classes:
AnimationData
,BorderImage
,ButtonNode
,CameraControlData
,CameraData
,Component
,DynamicText
,FrameNode
,GridGroup
,ImageNode
,LayoutNode
,LayoutNodeStyle
,MultiTileRenderer
,Node
,NodeRoot
,NodeStyle
,NodeStyleBase
,ParticleBurstEmitter
,ParticleEmitter
,ParticleFlowEmitter
,ParticleRenderer
,PhantomTile
,SpriteRenderer
,TextNode
,TileRenderer
,TooltipNode
,Transform
Interface with utility methods for finding certain entities in the current context.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Entity
getChildWithTag
(String tag) Gets a child entity with a given tag.default Entity
default Entity
default Entity
getParentWithTag
(String tag) Gets a parent entity with a given tag.default Transform
default boolean
isDescendantOf
(Transform parent) Methods inherited from interface dev.prozilla.pine.core.entity.EntityContext
isDescendantOf
-
Method Details
-
getEntity
Entity getEntity() -
getTransform
-
getFirstChild
- Specified by:
getFirstChild
in interfaceEntityContext
-
getLastChild
- Specified by:
getLastChild
in interfaceEntityContext
-
isDescendantOf
- Specified by:
isDescendantOf
in interfaceEntityContext
-
getChildWithTag
Description copied from interface:EntityContext
Gets a child entity with a given tag.- Specified by:
getChildWithTag
in interfaceEntityContext
- Parameters:
tag
- Tag of the child entity.- Returns:
- The child entity with the given tag, or null if there isn't one.
-
getParentWithTag
Description copied from interface:EntityContext
Gets a parent entity with a given tag.- Specified by:
getParentWithTag
in interfaceEntityContext
- Parameters:
tag
- Tag of the parent entity.- Returns:
- The parent entity with the given tag, or null if there isn't one.
-