Effective Composite Entity
A multi-part entity built from two or more EffectiveEntity types linked as parent + children.
getEffectiveEntities returns the parts (index 0 is the parent/root); spawning links them via persistent data so the group can be queried (getChildren, getParent, getCompositesEntities) and is cleaned up together — removing any part removes the whole composite. Requires at least two parts and registers itself on construction.
A built-in /ecomposite <key> command spawns any registered composite in-game.
Properties
Functions
Resolves the namespaced key for a single additional arg by name.
Builds all parts (linked parent↔children) at location without adding them to the world.
createEntities variant that also applies additionalArgs to the parent.
Optional per-composite arguments applied to the parent at creation.
Namespaced keys backing this composite's getAdditionalArgs.
The child of parent whose entity type matches namespacedKey, or null.
Child entities of parent (may contain nulls for unloaded entities), or null if none stored.
All live composites of this type as lists of [parent, child…] entities.
The parts of the composite; index 0 is the parent/root. Must contain at least two.
Owning plugin and a plugin-unique id; together they form the getNamespacedKey.
Unique identity as "<plugin-name>/<id>", both lowercased.
The parent (root) entity of possibleChild, or null if it has none.
Whether possibleParent is the recorded parent of possibleChild.
Creates and spawns all parts of the composite at location.
spawnEntities variant that also applies additionalArgs.