Record Class PhysicalCollisionCache.Snapshot
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.movement.replay.PhysicalCollisionCache.Snapshot
- Enclosing class:
PhysicalCollisionCache
public static record PhysicalCollisionCache.Snapshot(net.raphimc.viabedrock.protocol.model.Position3f position, net.raphimc.viabedrock.api.model.CollisionContact.Box bounds, List<PhysicalCollisionCache.Shape> shapes)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSnapshot(net.raphimc.viabedrock.protocol.model.Position3f position, net.raphimc.viabedrock.api.model.CollisionContact.Box bounds, List<PhysicalCollisionCache.Shape> shapes) Creates an instance of aSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.raphimc.viabedrock.api.model.CollisionContact.Boxbounds()Returns the value of theboundsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.raphimc.viabedrock.protocol.model.Position3fposition()Returns the value of thepositionrecord component.shapes()Returns the value of theshapesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Snapshot
public Snapshot(net.raphimc.viabedrock.protocol.model.Position3f position, net.raphimc.viabedrock.api.model.CollisionContact.Box bounds, List<PhysicalCollisionCache.Shape> shapes) Creates an instance of aSnapshotrecord class.- Parameters:
position- the value for thepositionrecord componentbounds- the value for theboundsrecord componentshapes- the value for theshapesrecord 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). -
position
public net.raphimc.viabedrock.protocol.model.Position3f position()Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
bounds
public net.raphimc.viabedrock.api.model.CollisionContact.Box bounds()Returns the value of theboundsrecord component.- Returns:
- the value of the
boundsrecord component
-
shapes
Returns the value of theshapesrecord component.- Returns:
- the value of the
shapesrecord component
-