Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: IrremovableComponent

[18:7] extends: Component

Wraps FXGL's IrremovableComponent (com.almasb.fxgl.entity.components.IrremovableComponent), a marker component that exempts an entity from GameWorld.clearLevel and gc(). Attach to entities that should survive level transitions (a player, a persistent UI overlay, etc.). Pure marker — no methods beyond construction.

Methods

  • IrremovableComponent ()

    Creates a new IrremovableComponent marker.

  • adopt (object Ajo)

    Wraps an existing IrremovableComponent AussomJavaObject.