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 Details

    • getFirstChild

      Entity getFirstChild()
    • getLastChild

      Entity getLastChild()
    • isDescendantOf

      default boolean isDescendantOf(Entity parent)
    • isDescendantOf

      boolean isDescendantOf(Transform parent)
    • getChildWithTag

      Entity getChildWithTag(String tag)
      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

      Entity getParentWithTag(String tag)
      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.