Record Class PhysicalCollisionCache.Shape
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.movement.replay.PhysicalCollisionCache.Shape
- Enclosing class:
PhysicalCollisionCache
public static record PhysicalCollisionCache.Shape(net.minecraft.world.phys.AABB bounds, PhysicalCollisionCache.Owner owner)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionShape(net.minecraft.world.phys.AABB bounds, PhysicalCollisionCache.Owner owner) Creates an instance of aShaperecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic PhysicalCollisionCache.Shapeactor(net.minecraft.world.entity.Entity actor) net.minecraft.world.phys.AABBbounds()Returns the value of theboundsrecord component.final booleanIndicates whether some other object is "equal to" this one.static PhysicalCollisionCache.Shapefixed(net.minecraft.world.phys.AABB bounds) final inthashCode()Returns a hash code value for this object.owner()Returns the value of theownerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Shape
Creates an instance of aShaperecord class.- Parameters:
bounds- the value for theboundsrecord componentowner- the value for theownerrecord component
-
-
Method Details
-
fixed
-
actor
-
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). -
bounds
public net.minecraft.world.phys.AABB bounds()Returns the value of theboundsrecord component.- Returns:
- the value of the
boundsrecord component
-
owner
Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-