Record Class SetPassengersPacket
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.server.play.SetPassengersPacket
- All Implemented Interfaces:
SendablePacket, ServerPacket, ServerPacket.Play
public record SetPassengersPacket(int vehicleEntityId, List<Integer> passengersId)
extends Record
implements ServerPacket.Play
-
Nested Class Summary
Nested classes/interfaces inherited from interface ServerPacket
ServerPacket.ComponentHolding, ServerPacket.Configuration, ServerPacket.Login, ServerPacket.Play, ServerPacket.Status -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final NetworkBuffer.Type<SetPassengersPacket> -
Constructor Summary
ConstructorsConstructorDescriptionSetPassengersPacket(int vehicleEntityId, List<Integer> passengersId) Creates an instance of aSetPassengersPacketrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepassengersIdrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thevehicleEntityIdrecord component.
-
Field Details
-
MAX_PASSENGERS
public static final int MAX_PASSENGERS- See Also:
-
SERIALIZER
-
-
Constructor Details
-
SetPassengersPacket
-
-
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. -
vehicleEntityId
public int vehicleEntityId()Returns the value of thevehicleEntityIdrecord component.- Returns:
- the value of the
vehicleEntityIdrecord component
-
passengersId
-