Record Class SceneData
java.lang.Object
java.lang.Record
com.soulfiremc.server.renderer.SceneData
public record SceneData(SceneData.MapFrameData[] mapFrames, SceneData.EntityData[] entities)
extends Record
Pre-collected scene data for rendering.
Contains cached information about entities and map frames to avoid
repeated method calls during ray casting.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordPre-computed data for a renderable entity.static final recordPre-computed data for an item frame containing a map. -
Constructor Summary
ConstructorsConstructorDescriptionSceneData(SceneData.MapFrameData[] mapFrames, SceneData.EntityData[] entities) Creates an instance of aSceneDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionentities()Returns the value of theentitiesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themapFramesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SceneData
Creates an instance of aSceneDatarecord class.- Parameters:
mapFrames- the value for themapFramesrecord componententities- the value for theentitiesrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
mapFrames
Returns the value of themapFramesrecord component.- Returns:
- the value of the
mapFramesrecord component
-
entities
Returns the value of theentitiesrecord component.- Returns:
- the value of the
entitiesrecord component
-