public class OpenHorseScreenS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Modifier and Type | Field and Description |
---|---|
private int |
horseId |
private int |
slotCount |
private int |
syncId |
Constructor and Description |
---|
OpenHorseScreenS2CPacket() |
OpenHorseScreenS2CPacket(int syncId,
int slotCount,
int horseId) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
int |
getHorseId() |
int |
getSlotCount() |
int |
getSyncId() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
public OpenHorseScreenS2CPacket()
public OpenHorseScreenS2CPacket(int syncId, int slotCount, int horseId)
public void apply(ClientPlayPacketListener clientPlayPacketListener)
apply
in interface Packet<ClientPlayPacketListener>
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ClientPlayPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ClientPlayPacketListener>
IOException
@Environment(value=CLIENT) public int getSyncId()
@Environment(value=CLIENT) public int getSlotCount()
@Environment(value=CLIENT) public int getHorseId()