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 void
apply(ClientPlayPacketListener clientPlayPacketListener)
int
getHorseId()
int
getSlotCount()
int
getSyncId()
void
read(PacketByteBuf buf)
void
write(PacketByteBuf buf)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
apply
in interfacePacket<ClientPlayPacketListener>
-
read
- Specified by:
read
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
-
write
- Specified by:
write
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
-
getSyncId
@Environment(CLIENT) public int getSyncId() -
getSlotCount
@Environment(CLIENT) public int getSlotCount() -
getHorseId
@Environment(CLIENT) public int getHorseId()
-