Package ke.ric.renderer.api
Interface SceneBuilder
public interface SceneBuilder
Builds a complete caller-supplied engine-neutral scene owned by one
RendererClient.
Missing world, chunk, block, entity, structure, or resolved visual evidence is rejected rather
than guessed by the provider.-
Method Summary
Modifier and TypeMethodDescriptionAdds one world-block sample with namespaced state/biome keys and block/sky light levels in 0..15.build()Returns an immutable scene or throws a typed failure such as MISSING_CHUNK; the provider never invents absent evidence.camera(double x, double y, double z, double yawRadians, double pitchRadians, double fovRadians) Sets the camera in world-block coordinates and orientation/field of view in radians.default SceneBuildercamera(SceneCamera camera) Sets a camera including local roll; older providers accept only zero roll.chunkSection(int sectionX, int sectionY, int sectionZ, boolean present) Records legacy section presence at section coordinates (block coordinates divided by 16): false means missing; true permits empty or populated evidence.default SceneBuilderchunkSection(int sectionX, int sectionY, int sectionZ, ChunkSectionState state) Records MISSING, known EMPTY, or PALETTED evidence for a section; known air must not be recorded as missing.dimensions(int width, int height) Sets positive output dimensions in pixels; these must match the submittedRenderSettings.entity(SceneEntity entity) Adds resolved immutable entity visuals and their stable nonzero object ID; metadata alone cannot supply missing visuals.requireChunk(int chunkX, int chunkZ) Marks chunk coordinates (block coordinates divided by 16) as required; every world-height section needs explicit evidence.structure(SceneStructure structure) Adds one structure key and bounds.weather(boolean raining, boolean snowy) Sets explicit rain and snow evidence; this does not query or mutate any live world.Sets world/environment names, time in Minecraft ticks, and minimum/maximum build heights in blocks.
-
Method Details
-
dimensions
Sets positive output dimensions in pixels; these must match the submittedRenderSettings. -
camera
SceneBuilder camera(double x, double y, double z, double yawRadians, double pitchRadians, double fovRadians) Sets the camera in world-block coordinates and orientation/field of view in radians.- Parameters:
x- world X coordinate in blocksy- world Y coordinate in blocksz- world Z coordinate in blocksyawRadians- horizontal orientation, in radians (not Bukkit degrees)pitchRadians- vertical orientation, in radians (not Bukkit degrees)fovRadians- camera field of view, in radians- Returns:
- this builder
-
camera
Sets a camera including local roll; older providers accept only zero roll. -
world
SceneBuilder world(String namespacedEnvironment, String worldName, long time, int minHeight, int maxHeight) Sets world/environment names, time in Minecraft ticks, and minimum/maximum build heights in blocks. -
weather
Sets explicit rain and snow evidence; this does not query or mutate any live world. -
block
SceneBuilder block(int x, int y, int z, String namespacedBlockState, int blockLight, int skyLight, String biome) Adds one world-block sample with namespaced state/biome keys and block/sky light levels in 0..15. -
entity
Adds resolved immutable entity visuals and their stable nonzero object ID; metadata alone cannot supply missing visuals. -
structure
Adds one structure key and bounds. -
chunkSection
Records legacy section presence at section coordinates (block coordinates divided by 16): false means missing; true permits empty or populated evidence. Use the state overload to distinguish known empty from paletted sections. -
chunkSection
default SceneBuilder chunkSection(int sectionX, int sectionY, int sectionZ, ChunkSectionState state) Records MISSING, known EMPTY, or PALETTED evidence for a section; known air must not be recorded as missing. -
requireChunk
Marks chunk coordinates (block coordinates divided by 16) as required; every world-height section needs explicit evidence. -
build
Scene build()Returns an immutable scene or throws a typed failure such as MISSING_CHUNK; the provider never invents absent evidence.
-