Package ke.ric.renderer.api
Record Class SceneSelection
java.lang.Object
java.lang.Record
ke.ric.renderer.api.SceneSelection
- Record Components:
includeBlocks- whether existing block geometry is retained (false retains known-air evidence)entities- non-null captured/caller-supplied entity category to retain
public record SceneSelection(boolean includeBlocks, SceneSelection.EntityMode entities)
extends Record
Selects evidence retained in an immutable scene derivative. Selection only removes evidence;
deriving again cannot restore blocks or entities removed from an earlier scene.
Requires a matching development provider implementing
RendererClient.deriveScene(ke.ric.renderer.api.Scene, ke.ric.renderer.api.SceneSelection); older providers reject it.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEntity evidence to retain, using the captured or caller-supplied living flag. -
Constructor Summary
ConstructorsConstructorDescriptionSceneSelection(boolean includeBlocks, SceneSelection.EntityMode entities) Creates an instance of aSceneSelectionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic SceneSelectionall()Retains all block and entity evidence already present in the source.entities()Returns the value of theentitiesrecord component.static SceneSelectionRemoves block geometry and retains all existing entities, including nonliving ones.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theincludeBlocksrecord component.static SceneSelectionRemoves block geometry and retains only entities already marked living.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SceneSelection
Creates an instance of aSceneSelectionrecord class.- Parameters:
includeBlocks- the value for theincludeBlocksrecord componententities- the value for theentitiesrecord component
-
-
Method Details
-
all
Retains all block and entity evidence already present in the source. -
entitiesOnly
Removes block geometry and retains all existing entities, including nonliving ones. -
livingEntitiesOnly
Removes block geometry and retains only entities already marked living. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
includeBlocks
public boolean includeBlocks()Returns the value of theincludeBlocksrecord component.- Returns:
- the value of the
includeBlocksrecord component
-
entities
Returns the value of theentitiesrecord component.- Returns:
- the value of the
entitiesrecord component
-