Record Class VehicleMovePacket
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.server.play.VehicleMovePacket
- All Implemented Interfaces:
- NetworkBuffer.Writer,- SendablePacket,- ServerPacket,- ServerPacket.Play
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minestom.server.network.packet.server.ServerPacketServerPacket.ComponentHolding, ServerPacket.Configuration, ServerPacket.Login, ServerPacket.Play, ServerPacket.Status
- 
Constructor SummaryConstructorsConstructorDescriptionVehicleMovePacket(@NotNull Pos position) Creates an instance of aVehicleMovePacketrecord class.VehicleMovePacket(@NotNull NetworkBuffer reader) 
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intplayId()@NotNull Posposition()Returns the value of thepositionrecord component.final StringtoString()Returns a string representation of this record class.voidwrite(@NotNull NetworkBuffer writer) Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minestom.server.network.packet.server.ServerPacketgetId
- 
Constructor Details- 
VehicleMovePacket
- 
VehicleMovePacketCreates an instance of aVehicleMovePacketrecord class.- Parameters:
- position- the value for the- positionrecord component
 
 
- 
- 
Method Details- 
write- Specified by:
- writein interface- NetworkBuffer.Writer
 
- 
playIdpublic int playId()- Specified by:
- playIdin interface- ServerPacket.Play
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
positionReturns the value of thepositionrecord component.- Returns:
- the value of the positionrecord component
 
 
-