Record Class SceneEntity

java.lang.Object
java.lang.Record
ke.ric.renderer.api.SceneEntity
Record Components:
uuid - stable entity UUID
type - namespaced entity type
x - world X position in blocks
y - world Y position in blocks
z - world Z position in blocks
yaw - horizontal orientation in degrees
minX - minimum world X bound in blocks
minY - minimum world Y bound in blocks
minZ - minimum world Z bound in blocks
maxX - maximum world X bound in blocks
maxY - maximum world Y bound in blocks
maxZ - maximum world Z bound in blocks
displayName - optional entity display name
living - immutable living-entity classification used by scene selection
mainHand - namespaced main-hand item key
offHand - namespaced off-hand item key
helmet - namespaced helmet item key
chestplate - namespaced chestplate item key
leggings - namespaced leggings item key
boots - namespaced boots item key
baby - whether this entity has baby proportions
variant - optional variant metadata
cubeSize - positive cube-entity size
model - optional model metadata
skin - optional skin metadata
material - optional material metadata
pose - optional pose metadata
containedBlock - optional contained-block state metadata
objectId - nonzero caller-visible identity retained in OBJECT_ID output
resolvedTargets - copied independently placed visual-target list; null means empty
resolvedLabel - 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.
  • 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 a SceneEntity record class.
      Parameters:
      uuid - the value for the uuid record component
      type - the value for the type record component
      x - the value for the x record component
      y - the value for the y record component
      z - the value for the z record component
      yaw - the value for the yaw record component
      minX - the value for the minX record component
      minY - the value for the minY record component
      minZ - the value for the minZ record component
      maxX - the value for the maxX record component
      maxY - the value for the maxY record component
      maxZ - the value for the maxZ record component
      displayName - the value for the displayName record component
      living - the value for the living record component
      mainHand - the value for the mainHand record component
      offHand - the value for the offHand record component
      helmet - the value for the helmet record component
      chestplate - the value for the chestplate record component
      leggings - the value for the leggings record component
      boots - the value for the boots record component
      baby - the value for the baby record component
      variant - the value for the variant record component
      cubeSize - the value for the cubeSize record component
      model - the value for the model record component
      skin - the value for the skin record component
      material - the value for the material record component
      pose - the value for the pose record component
      containedBlock - the value for the containedBlock record component
      objectId - the value for the objectId record component
      resolvedTargets - the value for the resolvedTargets record component
      resolvedLabel - the value for the resolvedLabel record 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. Prefer builder(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(forRemoval=false) public ResolvedRenderTarget resolvedTarget()
      Deprecated.
      Returns the first resolved target, or null when no target is present.
    • builder

      public static SceneEntity.Builder builder(UUID uuid, String type)
      Starts a resolved entity with a stable UUID and namespaced type.
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • uuid

      public UUID uuid()
      Returns the value of the uuid record component.
      Returns:
      the value of the uuid record component
    • type

      public String type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • x

      public double x()
      Returns the value of the x record component.
      Returns:
      the value of the x record component
    • y

      public double y()
      Returns the value of the y record component.
      Returns:
      the value of the y record component
    • z

      public double z()
      Returns the value of the z record component.
      Returns:
      the value of the z record component
    • yaw

      public float yaw()
      Returns the value of the yaw record component.
      Returns:
      the value of the yaw record component
    • minX

      public double minX()
      Returns the value of the minX record component.
      Returns:
      the value of the minX record component
    • minY

      public double minY()
      Returns the value of the minY record component.
      Returns:
      the value of the minY record component
    • minZ

      public double minZ()
      Returns the value of the minZ record component.
      Returns:
      the value of the minZ record component
    • maxX

      public double maxX()
      Returns the value of the maxX record component.
      Returns:
      the value of the maxX record component
    • maxY

      public double maxY()
      Returns the value of the maxY record component.
      Returns:
      the value of the maxY record component
    • maxZ

      public double maxZ()
      Returns the value of the maxZ record component.
      Returns:
      the value of the maxZ record component
    • displayName

      public String displayName()
      Returns the value of the displayName record component.
      Returns:
      the value of the displayName record component
    • living

      public boolean living()
      Returns the value of the living record component.
      Returns:
      the value of the living record component
    • mainHand

      public String mainHand()
      Returns the value of the mainHand record component.
      Returns:
      the value of the mainHand record component
    • offHand

      public String offHand()
      Returns the value of the offHand record component.
      Returns:
      the value of the offHand record component
    • helmet

      public String helmet()
      Returns the value of the helmet record component.
      Returns:
      the value of the helmet record component
    • chestplate

      public String chestplate()
      Returns the value of the chestplate record component.
      Returns:
      the value of the chestplate record component
    • leggings

      public String leggings()
      Returns the value of the leggings record component.
      Returns:
      the value of the leggings record component
    • boots

      public String boots()
      Returns the value of the boots record component.
      Returns:
      the value of the boots record component
    • baby

      public boolean baby()
      Returns the value of the baby record component.
      Returns:
      the value of the baby record component
    • variant

      public String variant()
      Returns the value of the variant record component.
      Returns:
      the value of the variant record component
    • cubeSize

      public int cubeSize()
      Returns the value of the cubeSize record component.
      Returns:
      the value of the cubeSize record component
    • model

      public String model()
      Returns the value of the model record component.
      Returns:
      the value of the model record component
    • skin

      public String skin()
      Returns the value of the skin record component.
      Returns:
      the value of the skin record component
    • material

      public String material()
      Returns the value of the material record component.
      Returns:
      the value of the material record component
    • pose

      public String pose()
      Returns the value of the pose record component.
      Returns:
      the value of the pose record component
    • containedBlock

      public String containedBlock()
      Returns the value of the containedBlock record component.
      Returns:
      the value of the containedBlock record component
    • objectId

      public int objectId()
      Returns the value of the objectId record component.
      Returns:
      the value of the objectId record component
    • resolvedTargets

      public List<ResolvedRenderTarget> resolvedTargets()
      Returns the value of the resolvedTargets record component.
      Returns:
      the value of the resolvedTargets record component
    • resolvedLabel

      public ResolvedLabel resolvedLabel()
      Returns the value of the resolvedLabel record component.
      Returns:
      the value of the resolvedLabel record component