Package ke.ric.renderer.api
Class SceneEntity.Builder
java.lang.Object
ke.ric.renderer.api.SceneEntity.Builder
- Enclosing class:
SceneEntity
Mutable builder for immutable entity evidence; do not share it concurrently. Defaults to origin,
zero yaw, unit bounds, living/adult, cube size 1, air equipment and a UUID-derived nonzero ID.
Callers still supply complete resolved targets when the scene requires entity visuals.
-
Method Summary
Modifier and TypeMethodDescriptionbaby(boolean baby) Sets baby/adult metadata.bounds(double minX, double minY, double minZ, double maxX, double maxY, double maxZ) Sets finite world-space minimum/maximum bounds, in blocks.build()Validates and builds immutable evidence without reading any live Bukkit object.containedBlock(String containedBlock) Sets optional contained-block state metadata.cubeSize(int cubeSize) Sets a positive cube-entity size; default 1.displayName(String displayName) Sets the optional display name used with a primary resolved label.equipment(String mainHand, String offHand, String helmet, String chestplate, String leggings, String boots) Sets namespaced equipment item keys in main-hand, off-hand, helmet, chestplate, leggings, boots order.label(ResolvedLabel label) Sets optional primary label evidence; build requires a display name and at least one target.living(boolean living) Sets the immutable classification used by living-only scene selection.Sets optional material metadata.Sets model metadata; complete resolved visual targets remain the caller's responsibility.objectId(int objectId) Sets a nonzero stable output object ID, replacing the UUID-derived default.Sets optional pose metadata.position(double x, double y, double z) Sets entity position in world blocks.resolvedTarget(ResolvedRenderTarget target) Selects one legacy target, placed at this entity's transform/bounds when built; clears any target list.resolvedTargets(List<ResolvedRenderTarget> targets) Copies independently placed targets, replacing the legacy single target.Sets optional skin metadata without performing a network lookup.transform(ResolvedTransform transform) Copies position and degree-based yaw from this transform.Sets optional variant metadata; does not resolve missing visual evidence.yaw(float yawDegrees) Sets horizontal orientation in degrees, not radians.
-
Method Details
-
position
Sets entity position in world blocks. -
yaw
Sets horizontal orientation in degrees, not radians. -
transform
Copies position and degree-based yaw from this transform. -
bounds
public SceneEntity.Builder bounds(double minX, double minY, double minZ, double maxX, double maxY, double maxZ) Sets finite world-space minimum/maximum bounds, in blocks. -
displayName
Sets the optional display name used with a primary resolved label. -
living
Sets the immutable classification used by living-only scene selection. -
baby
Sets baby/adult metadata. -
variant
Sets optional variant metadata; does not resolve missing visual evidence. -
cubeSize
Sets a positive cube-entity size; default 1. -
model
Sets model metadata; complete resolved visual targets remain the caller's responsibility. -
skin
Sets optional skin metadata without performing a network lookup. -
material
Sets optional material metadata. -
pose
Sets optional pose metadata. -
containedBlock
Sets optional contained-block state metadata. -
objectId
Sets a nonzero stable output object ID, replacing the UUID-derived default. -
resolvedTarget
Selects one legacy target, placed at this entity's transform/bounds when built; clears any target list. -
resolvedTargets
Copies independently placed targets, replacing the legacy single target. -
label
Sets optional primary label evidence; build requires a display name and at least one target. -
equipment
public SceneEntity.Builder equipment(String mainHand, String offHand, String helmet, String chestplate, String leggings, String boots) Sets namespaced equipment item keys in main-hand, off-hand, helmet, chestplate, leggings, boots order. -
build
Validates and builds immutable evidence without reading any live Bukkit object.
-