Record Class SessionPlayerEntity.PendingBedInteraction
java.lang.Object
java.lang.Record
org.geysermc.geyser.entity.type.player.SessionPlayerEntity.PendingBedInteraction
- Enclosing class:
SessionPlayerEntity
public static record SessionPlayerEntity.PendingBedInteraction(org.cloudburstmc.math.vector.Vector3i headPosition, double yOffset)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPendingBedInteraction(org.cloudburstmc.math.vector.Vector3i headPosition, double yOffset) Creates an instance of aPendingBedInteractionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.org.cloudburstmc.math.vector.Vector3dfinal inthashCode()Returns a hash code value for this object.org.cloudburstmc.math.vector.Vector3iReturns the value of theheadPositionrecord component.final StringtoString()Returns a string representation of this record class.doubleyOffset()Returns the value of theyOffsetrecord component.
-
Constructor Details
-
PendingBedInteraction
public PendingBedInteraction(org.cloudburstmc.math.vector.Vector3i headPosition, double yOffset) Creates an instance of aPendingBedInteractionrecord class.- Parameters:
headPosition- the value for theheadPositionrecord componentyOffset- the value for theyOffsetrecord component
-
-
Method Details
-
expectedTeleportPosition
public org.cloudburstmc.math.vector.Vector3d expectedTeleportPosition() -
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 '=='. -
headPosition
public org.cloudburstmc.math.vector.Vector3i headPosition()Returns the value of theheadPositionrecord component.- Returns:
- the value of the
headPositionrecord component
-
yOffset
public double yOffset()Returns the value of theyOffsetrecord component.- Returns:
- the value of the
yOffsetrecord component
-