Class WorldScene
java.lang.Object
com.render.api.world.WorldScene
- All Implemented Interfaces:
AutoCloseable
Explicit owner for retained objects and their resources.
-
Method Summary
Modifier and TypeMethodDescription<T extends WorldObject<?>>
Tadd(T object) addAll(Collection<? extends WorldObject<?>> objects) Atomically attaches a collection and publishes one immutable membership snapshot.voidclose()booleanclosed()booleanenabled()enabled(boolean value) net.minecraft.resources.Identifierid()longVersion of the last published membership; bulk mutations increment this once.booleanremove(WorldObject<?> object) intremoveAll(Collection<? extends WorldObject<?>> objects) Detaches selected members without closing them, publishing at most one membership snapshot.intsize()Last executed scene BVH query.
-
Method Details
-
id
public net.minecraft.resources.Identifier id() -
closed
public boolean closed() -
enabled
public boolean enabled() -
enabled
-
add
-
addAll
Atomically attaches a collection and publishes one immutable membership snapshot. Failure rolls back ownership. -
removeAll
Detaches selected members without closing them, publishing at most one membership snapshot. -
membershipVersion
public long membershipVersion()Version of the last published membership; bulk mutations increment this once. -
size
public int size() -
remove
-
spatialStats
Last executed scene BVH query. Plain final Box3D and immutable-model Model3D objects participate automatically; dynamic/custom/stroked/animated/effected objects retain ordinary extraction. Counters are CPU work, not GPU time. -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-