Package ke.ric.renderer.api
Record Class SceneReusePolicy
java.lang.Object
java.lang.Record
ke.ric.renderer.api.SceneReusePolicy
- Record Components:
maxWorldAge- positive duration measured from original world capture; must fit in nanosecondsmaxCameraDisplacement- finite nonnegative distance from the original camera position, in blocks
Immutable limits for reusing unchanged world evidence with a different camera pose. Neither
limit is renewed by scene derivation or reuse. The provider also requires the original centre
chunk and captured build-height coverage. Reuse does not update captured entities or environment.
-
Constructor Summary
ConstructorsConstructorDescriptionSceneReusePolicy(Duration maxWorldAge, double maxCameraDisplacement) Constructs a validated immutable value. -
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.doubleReturns the value of themaxCameraDisplacementrecord component.Returns the value of themaxWorldAgerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SceneReusePolicy
Constructs a validated immutable value.- Throws:
IllegalArgumentException- if either bound is invalidNullPointerException- if maxWorldAge is null
-
-
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 '=='. -
maxWorldAge
Returns the value of themaxWorldAgerecord component.- Returns:
- the value of the
maxWorldAgerecord component
-
maxCameraDisplacement
public double maxCameraDisplacement()Returns the value of themaxCameraDisplacementrecord component.- Returns:
- the value of the
maxCameraDisplacementrecord component
-