public class WorldEventS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Modifier and Type | Field and Description |
---|---|
private int |
data |
private int |
eventId |
private boolean |
global |
private BlockPos |
pos |
Constructor and Description |
---|
WorldEventS2CPacket() |
WorldEventS2CPacket(int eventId,
BlockPos pos,
int data,
boolean global) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
int |
getData() |
int |
getEventId() |
BlockPos |
getPos() |
boolean |
isGlobal() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private int eventId
private BlockPos pos
private int data
private boolean global
public WorldEventS2CPacket()
public WorldEventS2CPacket(int eventId, BlockPos pos, int data, boolean global)
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 boolean isGlobal()
@Environment(value=CLIENT) public int getEventId()
@Environment(value=CLIENT) public int getData()
@Environment(value=CLIENT) public BlockPos getPos()