public class OpenScreenS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Modifier and Type | Field and Description |
---|---|
private Text |
name |
private int |
screenHandlerId |
private int |
syncId |
Constructor and Description |
---|
OpenScreenS2CPacket() |
OpenScreenS2CPacket(int syncId,
ScreenHandlerType<?> type,
Text name) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
Text |
getName() |
ScreenHandlerType<?> |
getScreenHandlerType() |
int |
getSyncId() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private int syncId
private int screenHandlerId
private Text name
public OpenScreenS2CPacket()
public OpenScreenS2CPacket(int syncId, ScreenHandlerType<?> type, Text name)
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
public void apply(ClientPlayPacketListener clientPlayPacketListener)
apply
in interface Packet<ClientPlayPacketListener>
@Environment(value=CLIENT) public int getSyncId()
@Environment(value=CLIENT) @Nullable public ScreenHandlerType<?> getScreenHandlerType()
@Environment(value=CLIENT) public Text getName()