Record Class FacePlayerPacket
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.server.play.FacePlayerPacket
- All Implemented Interfaces:
SendablePacket, ServerPacket, ServerPacket.Play
public record FacePlayerPacket(FacePlayerPacket.FacePosition facePosition, Point target, int entityId, FacePlayerPacket.FacePosition entityFacePosition)
extends Record
implements ServerPacket.Play
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface ServerPacket
ServerPacket.ComponentHolding, ServerPacket.Configuration, ServerPacket.Login, ServerPacket.Play, ServerPacket.Status -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFacePlayerPacket(FacePlayerPacket.FacePosition facePosition, Point target, int entityId, FacePlayerPacket.FacePosition entityFacePosition) Creates an instance of aFacePlayerPacketrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theentityFacePositionrecord component.intentityId()Returns the value of theentityIdrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefacePositionrecord component.final inthashCode()Returns a hash code value for this object.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
SERIALIZER
-
-
Constructor Details
-
FacePlayerPacket
public FacePlayerPacket(FacePlayerPacket.FacePosition facePosition, Point target, int entityId, FacePlayerPacket.FacePosition entityFacePosition) Creates an instance of aFacePlayerPacketrecord class.- Parameters:
facePosition- the value for thefacePositionrecord componenttarget- the value for thetargetrecord componententityId- the value for theentityIdrecord componententityFacePosition- the value for theentityFacePositionrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
facePosition
Returns the value of thefacePositionrecord component.- Returns:
- the value of the
facePositionrecord component
-
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
entityId
public int entityId()Returns the value of theentityIdrecord component.- Returns:
- the value of the
entityIdrecord component
-
entityFacePosition
Returns the value of theentityFacePositionrecord component.- Returns:
- the value of the
entityFacePositionrecord component
-