Record Class OpenHorseWindowPacket
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.server.play.OpenHorseWindowPacket
- All Implemented Interfaces:
SendablePacket, ServerPacket, ServerPacket.Play
public record OpenHorseWindowPacket(int windowId, int slotCount, int entityId)
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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOpenHorseWindowPacket(int windowId, int slotCount, int entityId) Creates an instance of aOpenHorseWindowPacketrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintentityId()Returns the value of theentityIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theslotCountrecord component.final StringtoString()Returns a string representation of this record class.intwindowId()Returns the value of thewindowIdrecord component.
-
Field Details
-
SERIALIZER
-
-
Constructor Details
-
OpenHorseWindowPacket
public OpenHorseWindowPacket(int windowId, int slotCount, int entityId) Creates an instance of aOpenHorseWindowPacketrecord class.- Parameters:
windowId- the value for thewindowIdrecord componentslotCount- the value for theslotCountrecord componententityId- the value for theentityIdrecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
windowId
public int windowId()Returns the value of thewindowIdrecord component.- Returns:
- the value of the
windowIdrecord component
-
slotCount
public int slotCount()Returns the value of theslotCountrecord component.- Returns:
- the value of the
slotCountrecord component
-
entityId
public int entityId()Returns the value of theentityIdrecord component.- Returns:
- the value of the
entityIdrecord component
-