ModelOutliner

@ApiStatus.Internal
interface ModelOutliner

Represents the hierarchical structure (outliner) of a model.

The outliner defines the parent-child relationships between groups and elements (cubes, locators, etc.). It can be either a direct reference to an element (UUID string) or a tree node (Group) containing children.

Since

1.15.2

Inheritors

Types

Link copied to clipboard
Represents a leaf node in the outliner, referencing a specific element by UUID.
Link copied to clipboard
Represents a branch node (Group) in the outliner, containing child nodes.

Properties

Link copied to clipboard
val PARSER: JsonDeserializer<ModelOutliner>
A JSON deserializer that parses the outliner structure.

Functions

Link copied to clipboard
@NotNull
abstract fun flatten(): @NotNull Stream<ModelOutliner>
Flattens the outliner tree into a stream of all nodes.
Link copied to clipboard
@NotNull
abstract fun toBlueprint(@NotNull context: @NotNull ModelLoadContext): @NotNull BlueprintElement
Converts this outliner node into a processed BlueprintElement.
Link copied to clipboard
@NotNull
abstract fun uuid(): @NotNull String
Returns the UUID of this outliner node.