Class OpenHorseScreenS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.OpenHorseScreenS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class OpenHorseScreenS2CPacket extends Object implements Packet<ClientPlayPacketListener>
-
Field Summary
-
Constructor Summary
Constructors Constructor Description OpenHorseScreenS2CPacket()OpenHorseScreenS2CPacket(int syncId, int slotCount, int horseId) -
Method Summary
Modifier and Type Method Description voidapply(ClientPlayPacketListener clientPlayPacketListener)intgetHorseId()intgetSlotCount()intgetSyncId()voidread(PacketByteBuf buf)voidwrite(PacketByteBuf buf)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
Field Details
-
syncId
private int syncId -
slotCount
private int slotCount -
horseId
private int horseId
-
-
Constructor Details
-
OpenHorseScreenS2CPacket
public OpenHorseScreenS2CPacket() -
OpenHorseScreenS2CPacket
public OpenHorseScreenS2CPacket(int syncId, int slotCount, int horseId)
-
-
Method Details
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>
-
read
- Specified by:
readin interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
write
- Specified by:
writein interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
getSyncId
@Environment(CLIENT) public int getSyncId() -
getSlotCount
@Environment(CLIENT) public int getSlotCount() -
getHorseId
@Environment(CLIENT) public int getHorseId()
-