Class WorldScene

java.lang.Object
com.render.api.world.WorldScene
All Implemented Interfaces:
AutoCloseable

public final class WorldScene extends Object implements AutoCloseable
Explicit owner for retained objects and their resources.
  • Method Details

    • id

      public net.minecraft.resources.Identifier id()
    • closed

      public boolean closed()
    • enabled

      public boolean enabled()
    • enabled

      public WorldScene enabled(boolean value)
    • add

      public <T extends WorldObject<?>> T add(T object)
    • addAll

      public WorldScene addAll(Collection<? extends WorldObject<?>> objects)
      Atomically attaches a collection and publishes one immutable membership snapshot. Failure rolls back ownership.
    • removeAll

      public int removeAll(Collection<? extends WorldObject<?>> objects)
      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

      public boolean remove(WorldObject<?> object)
    • spatialStats

      public WorldSceneSpatialStats 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:
      close in interface AutoCloseable