Record Class SceneData.EntityData
java.lang.Object
java.lang.Record
com.soulfiremc.server.renderer.SceneData.EntityData
- Enclosing class:
SceneData
Pre-computed data for a renderable entity.
-
Constructor Summary
ConstructorsConstructorDescriptionEntityData(net.minecraft.world.phys.AABB bbox) Creates an instance of aEntityDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.phys.AABBbbox()Returns the value of thebboxrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EntityData
public EntityData(net.minecraft.world.phys.AABB bbox) Creates an instance of aEntityDatarecord class.- Parameters:
bbox- the value for thebboxrecord 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). -
bbox
public net.minecraft.world.phys.AABB bbox()Returns the value of thebboxrecord component.- Returns:
- the value of the
bboxrecord component
-