Package ke.ric.renderer.api
Record Class SceneEntity
java.lang.Object
java.lang.Record
ke.ric.renderer.api.SceneEntity
- Record Components:
uuid- stable entity UUIDtype- namespaced entity typex- world X position in blocksy- world Y position in blocksz- world Z position in blocksyaw- horizontal orientation in degreesminX- minimum world X bound in blocksminY- minimum world Y bound in blocksminZ- minimum world Z bound in blocksmaxX- maximum world X bound in blocksmaxY- maximum world Y bound in blocksmaxZ- maximum world Z bound in blocksdisplayName- optional entity display nameliving- immutable living-entity classification used by scene selectionmainHand- namespaced main-hand item keyoffHand- namespaced off-hand item keyhelmet- namespaced helmet item keychestplate- namespaced chestplate item keyleggings- namespaced leggings item keyboots- namespaced boots item keybaby- whether this entity has baby proportionsvariant- optional variant metadatacubeSize- positive cube-entity sizemodel- optional model metadataskin- optional skin metadatamaterial- optional material metadatapose- optional pose metadatacontainedBlock- optional contained-block state metadataobjectId- nonzero caller-visible identity retained in OBJECT_ID outputresolvedTargets- copied independently placed visual-target list; null means emptyresolvedLabel- optional primary label; requires a display name and resolved target
public record SceneEntity(UUID uuid, String type, double x, double y, double z, float yaw, double minX, double minY, double minZ, double maxX, double maxY, double maxZ, String displayName, boolean living, String mainHand, String offHand, String helmet, String chestplate, String leggings, String boots, boolean baby, String variant, int cubeSize, String model, String skin, String material, String pose, String containedBlock, int objectId, List<ResolvedRenderTarget> resolvedTargets, ResolvedLabel resolvedLabel)
extends Record
Immutable entity evidence grouped by one stable nonzero object ID. Positions/bounds use world
blocks; yaw uses degrees. Resolved target/label evidence is copied, never looked up in live entities.
Prefer
builder(UUID, String) to the legacy metadata-only constructors.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classMutable builder for immutable entity evidence; do not share it concurrently. -
Constructor Summary
ConstructorsConstructorDescriptionSceneEntity(UUID uuid, String type, double x, double y, double z, float yaw, double minX, double minY, double minZ, double maxX, double maxY, double maxZ, String displayName, boolean living, String mainHand, String offHand, String helmet, String chestplate, String leggings, String boots, boolean baby, String variant, int cubeSize) Legacy metadata-only convenience constructor; defaults model/material to the type and omits resolved visuals.SceneEntity(UUID uuid, String type, double x, double y, double z, float yaw, double minX, double minY, double minZ, double maxX, double maxY, double maxZ, String displayName, boolean living, String mainHand, String offHand, String helmet, String chestplate, String leggings, String boots, boolean baby, String variant, int cubeSize, String model, String skin, String material, String pose, String containedBlock) Deprecated.SceneEntity(UUID uuid, String type, double x, double y, double z, float yaw, double minX, double minY, double minZ, double maxX, double maxY, double maxZ, String displayName, boolean living, String mainHand, String offHand, String helmet, String chestplate, String leggings, String boots, boolean baby, String variant, int cubeSize, String model, String skin, String material, String pose, String containedBlock, int objectId, List<ResolvedRenderTarget> resolvedTargets, ResolvedLabel resolvedLabel) Creates an instance of aSceneEntityrecord class.SceneEntity(UUID uuid, String type, double x, double y, double z, float yaw, double minX, double minY, double minZ, double maxX, double maxY, double maxZ, String displayName, boolean living, String mainHand, String offHand, String helmet, String chestplate, String leggings, String boots, boolean baby, String variant, int cubeSize, String model, String skin, String material, String pose, String containedBlock, ResolvedRenderTarget resolvedTarget, ResolvedLabel resolvedLabel) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbaby()Returns the value of thebabyrecord component.boots()Returns the value of thebootsrecord component.static SceneEntity.BuilderStarts a resolved entity with a stable UUID and namespaced type.Returns the value of thechestplaterecord component.Returns the value of thecontainedBlockrecord component.intcubeSize()Returns the value of thecubeSizerecord component.Returns the value of thedisplayNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.helmet()Returns the value of thehelmetrecord component.leggings()Returns the value of theleggingsrecord component.booleanliving()Returns the value of thelivingrecord component.mainHand()Returns the value of themainHandrecord component.material()Returns the value of thematerialrecord component.doublemaxX()Returns the value of themaxXrecord component.doublemaxY()Returns the value of themaxYrecord component.doublemaxZ()Returns the value of themaxZrecord component.doubleminX()Returns the value of theminXrecord component.doubleminY()Returns the value of theminYrecord component.doubleminZ()Returns the value of theminZrecord component.model()Returns the value of themodelrecord component.intobjectId()Returns the value of theobjectIdrecord component.offHand()Returns the value of theoffHandrecord component.pose()Returns the value of theposerecord component.Returns the value of theresolvedLabelrecord component.Deprecated.Returns the value of theresolvedTargetsrecord component.skin()Returns the value of theskinrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.uuid()Returns the value of theuuidrecord component.variant()Returns the value of thevariantrecord component.doublex()Returns the value of thexrecord component.doubley()Returns the value of theyrecord component.floatyaw()Returns the value of theyawrecord component.doublez()Returns the value of thezrecord component.
-
Constructor Details
-
SceneEntity
public SceneEntity(UUID uuid, String type, double x, double y, double z, float yaw, double minX, double minY, double minZ, double maxX, double maxY, double maxZ, String displayName, boolean living, String mainHand, String offHand, String helmet, String chestplate, String leggings, String boots, boolean baby, String variant, int cubeSize, String model, String skin, String material, String pose, String containedBlock, int objectId, List<ResolvedRenderTarget> resolvedTargets, ResolvedLabel resolvedLabel) Creates an instance of aSceneEntityrecord class.- Parameters:
uuid- the value for theuuidrecord componenttype- the value for thetyperecord componentx- the value for thexrecord componenty- the value for theyrecord componentz- the value for thezrecord componentyaw- the value for theyawrecord componentminX- the value for theminXrecord componentminY- the value for theminYrecord componentminZ- the value for theminZrecord componentmaxX- the value for themaxXrecord componentmaxY- the value for themaxYrecord componentmaxZ- the value for themaxZrecord componentdisplayName- the value for thedisplayNamerecord componentliving- the value for thelivingrecord componentmainHand- the value for themainHandrecord componentoffHand- the value for theoffHandrecord componenthelmet- the value for thehelmetrecord componentchestplate- the value for thechestplaterecord componentleggings- the value for theleggingsrecord componentboots- the value for thebootsrecord componentbaby- the value for thebabyrecord componentvariant- the value for thevariantrecord componentcubeSize- the value for thecubeSizerecord componentmodel- the value for themodelrecord componentskin- the value for theskinrecord componentmaterial- the value for thematerialrecord componentpose- the value for theposerecord componentcontainedBlock- the value for thecontainedBlockrecord componentobjectId- the value for theobjectIdrecord componentresolvedTargets- the value for theresolvedTargetsrecord componentresolvedLabel- the value for theresolvedLabelrecord component
-
SceneEntity
@Deprecated(forRemoval=false) public SceneEntity(UUID uuid, String type, double x, double y, double z, float yaw, double minX, double minY, double minZ, double maxX, double maxY, double maxZ, String displayName, boolean living, String mainHand, String offHand, String helmet, String chestplate, String leggings, String boots, boolean baby, String variant, int cubeSize, String model, String skin, String material, String pose, String containedBlock) Deprecated.Creates entity metadata without resolved visual targets. Preferbuilder(UUID, String)when supplying complete manual-scene evidence. -
SceneEntity
@Deprecated(forRemoval=false) public SceneEntity(UUID uuid, String type, double x, double y, double z, float yaw, double minX, double minY, double minZ, double maxX, double maxY, double maxZ, String displayName, boolean living, String mainHand, String offHand, String helmet, String chestplate, String leggings, String boots, boolean baby, String variant, int cubeSize, String model, String skin, String material, String pose, String containedBlock, ResolvedRenderTarget resolvedTarget, ResolvedLabel resolvedLabel) Deprecated.Creates an entity with one target placed at the entity transform and bounds. Prefer the builder's target list for entities composed from multiple independent targets. -
SceneEntity
public SceneEntity(UUID uuid, String type, double x, double y, double z, float yaw, double minX, double minY, double minZ, double maxX, double maxY, double maxZ, String displayName, boolean living, String mainHand, String offHand, String helmet, String chestplate, String leggings, String boots, boolean baby, String variant, int cubeSize) Legacy metadata-only convenience constructor; defaults model/material to the type and omits resolved visuals.
-
-
Method Details
-
resolvedTarget
Deprecated.Returns the first resolved target, or null when no target is present. -
builder
Starts a resolved entity with a stable UUID and namespaced type. -
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 '=='. -
uuid
Returns the value of theuuidrecord component.- Returns:
- the value of the
uuidrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
x
public double x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public double y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
z
public double z()Returns the value of thezrecord component.- Returns:
- the value of the
zrecord component
-
yaw
public float yaw()Returns the value of theyawrecord component.- Returns:
- the value of the
yawrecord component
-
minX
public double minX()Returns the value of theminXrecord component.- Returns:
- the value of the
minXrecord component
-
minY
public double minY()Returns the value of theminYrecord component.- Returns:
- the value of the
minYrecord component
-
minZ
public double minZ()Returns the value of theminZrecord component.- Returns:
- the value of the
minZrecord component
-
maxX
public double maxX()Returns the value of themaxXrecord component.- Returns:
- the value of the
maxXrecord component
-
maxY
public double maxY()Returns the value of themaxYrecord component.- Returns:
- the value of the
maxYrecord component
-
maxZ
public double maxZ()Returns the value of themaxZrecord component.- Returns:
- the value of the
maxZrecord component
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
living
public boolean living()Returns the value of thelivingrecord component.- Returns:
- the value of the
livingrecord component
-
mainHand
Returns the value of themainHandrecord component.- Returns:
- the value of the
mainHandrecord component
-
offHand
Returns the value of theoffHandrecord component.- Returns:
- the value of the
offHandrecord component
-
helmet
Returns the value of thehelmetrecord component.- Returns:
- the value of the
helmetrecord component
-
chestplate
Returns the value of thechestplaterecord component.- Returns:
- the value of the
chestplaterecord component
-
leggings
Returns the value of theleggingsrecord component.- Returns:
- the value of the
leggingsrecord component
-
boots
Returns the value of thebootsrecord component.- Returns:
- the value of the
bootsrecord component
-
baby
public boolean baby()Returns the value of thebabyrecord component.- Returns:
- the value of the
babyrecord component
-
variant
Returns the value of thevariantrecord component.- Returns:
- the value of the
variantrecord component
-
cubeSize
public int cubeSize()Returns the value of thecubeSizerecord component.- Returns:
- the value of the
cubeSizerecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
skin
Returns the value of theskinrecord component.- Returns:
- the value of the
skinrecord component
-
material
Returns the value of thematerialrecord component.- Returns:
- the value of the
materialrecord component
-
pose
Returns the value of theposerecord component.- Returns:
- the value of the
poserecord component
-
containedBlock
Returns the value of thecontainedBlockrecord component.- Returns:
- the value of the
containedBlockrecord component
-
objectId
public int objectId()Returns the value of theobjectIdrecord component.- Returns:
- the value of the
objectIdrecord component
-
resolvedTargets
Returns the value of theresolvedTargetsrecord component.- Returns:
- the value of the
resolvedTargetsrecord component
-
resolvedLabel
Returns the value of theresolvedLabelrecord component.- Returns:
- the value of the
resolvedLabelrecord component
-