Package ke.ric.renderer.api
Record Class CaptureProvenance
java.lang.Object
java.lang.Record
ke.ric.renderer.api.CaptureProvenance
- Record Components:
worldId- stable Bukkit world UUIDworldName- captured world nameworldEnvironment- captured world environment identifiersourceCamera- original source camera, with angles in radianscapturedAt- wall-clock capture timestampstartedNanos- monotonic time at the start of world evidence capturecompletedNanos- monotonic time at the end of world evidence capturefullTime- captured world time including elapsed daystimeOfDay- captured day ticks in 0..23999weather- captured local precipitation, including rain versus snowthundering- captured thunder statecameraBiome- captured camera biome identifier
public record CaptureProvenance(UUID worldId, String worldName, String worldEnvironment, SceneCamera sourceCamera, Instant capturedAt, long startedNanos, long completedNanos, long fullTime, long timeOfDay, Weather weather, boolean thundering, String cameraBiome)
extends Record
Immutable facts from the original capture, retained unchanged by scene derivation and camera
reuse. Rendered time/weather overrides do not rewrite these facts. Compare
RenderedFrame.effectiveCamera() with sourceCamera to inspect a reframed camera.
A batched capture covers an interval, not one instant. Monotonic nanosecond values are useful
for ages and durations only in the same server process; capturedAt provides a wall-clock
label. Camera biome and precipitation describe the source camera's captured environment.
-
Constructor Summary
ConstructorsConstructorDescriptionCaptureProvenance(UUID worldId, String worldName, String worldEnvironment, SceneCamera sourceCamera, Instant capturedAt, long startedNanos, long completedNanos, long fullTime, long timeOfDay, Weather weather, boolean thundering, String cameraBiome) Constructs a validated immutable value. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecameraBiomerecord component.Returns the value of thecapturedAtrecord component.longReturns the value of thecompletedNanosrecord component.final booleanIndicates whether some other object is "equal to" this one.longfullTime()Returns the value of thefullTimerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thesourceCamerarecord component.longReturns the value of thestartedNanosrecord component.booleanReturns the value of thethunderingrecord component.longReturns the value of thetimeOfDayrecord component.final StringtoString()Returns a string representation of this record class.weather()Returns the value of theweatherrecord component.Returns the value of theworldEnvironmentrecord component.worldId()Returns the value of theworldIdrecord component.Returns the value of theworldNamerecord component.
-
Constructor Details
-
CaptureProvenance
public CaptureProvenance(UUID worldId, String worldName, String worldEnvironment, SceneCamera sourceCamera, Instant capturedAt, long startedNanos, long completedNanos, long fullTime, long timeOfDay, Weather weather, boolean thundering, String cameraBiome) Constructs a validated immutable value.- Throws:
IllegalArgumentException- for a reversed interval or invalid time of dayNullPointerException- if a reference component 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 '=='. -
worldId
Returns the value of theworldIdrecord component.- Returns:
- the value of the
worldIdrecord component
-
worldName
Returns the value of theworldNamerecord component.- Returns:
- the value of the
worldNamerecord component
-
worldEnvironment
Returns the value of theworldEnvironmentrecord component.- Returns:
- the value of the
worldEnvironmentrecord component
-
sourceCamera
Returns the value of thesourceCamerarecord component.- Returns:
- the value of the
sourceCamerarecord component
-
capturedAt
Returns the value of thecapturedAtrecord component.- Returns:
- the value of the
capturedAtrecord component
-
startedNanos
public long startedNanos()Returns the value of thestartedNanosrecord component.- Returns:
- the value of the
startedNanosrecord component
-
completedNanos
public long completedNanos()Returns the value of thecompletedNanosrecord component.- Returns:
- the value of the
completedNanosrecord component
-
fullTime
public long fullTime()Returns the value of thefullTimerecord component.- Returns:
- the value of the
fullTimerecord component
-
timeOfDay
public long timeOfDay()Returns the value of thetimeOfDayrecord component.- Returns:
- the value of the
timeOfDayrecord component
-
weather
Returns the value of theweatherrecord component.- Returns:
- the value of the
weatherrecord component
-
thundering
public boolean thundering()Returns the value of thethunderingrecord component.- Returns:
- the value of the
thunderingrecord component
-
cameraBiome
Returns the value of thecameraBiomerecord component.- Returns:
- the value of the
cameraBiomerecord component
-