Package ke.ric.renderer.api
Record Class SceneStructure
java.lang.Object
java.lang.Record
ke.ric.renderer.api.SceneStructure
- Record Components:
key- non-null namespaced structure identifierminX- 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 blocks
public record SceneStructure(String key, double minX, double minY, double minZ, double maxX, double maxY, double maxZ)
extends Record
One namespaced structure key and finite inclusive world-space bounds supplied to a manual scene.
-
Constructor Summary
ConstructorsConstructorDescriptionSceneStructure(String key, double minX, double minY, double minZ, double maxX, double maxY, double maxZ) Creates an instance of aSceneStructurerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord 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.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SceneStructure
public SceneStructure(String key, double minX, double minY, double minZ, double maxX, double maxY, double maxZ) Creates an instance of aSceneStructurerecord class.- Parameters:
key- the value for thekeyrecord 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 component
-
-
Method Details
-
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 '=='. -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord 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
-