Class WorldEventS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.WorldEventS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class WorldEventS2CPacket extends Object implements Packet<ClientPlayPacketListener>
-
Field Summary
-
Constructor Summary
Constructors Constructor Description WorldEventS2CPacket()
WorldEventS2CPacket(int eventId, BlockPos pos, int data, boolean global)
-
Method Summary
Modifier and Type Method Description void
apply(ClientPlayPacketListener clientPlayPacketListener)
int
getData()
int
getEventId()
BlockPos
getPos()
boolean
isGlobal()
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
-
eventId
private int eventId -
pos
-
data
private int data -
global
private boolean global
-
-
Constructor Details
-
WorldEventS2CPacket
public WorldEventS2CPacket() -
WorldEventS2CPacket
-
-
Method Details
-
read
- Specified by:
read
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
-
write
- Specified by:
write
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
-
apply
- Specified by:
apply
in interfacePacket<ClientPlayPacketListener>
-
isGlobal
@Environment(CLIENT) public boolean isGlobal() -
getEventId
@Environment(CLIENT) public int getEventId() -
getData
@Environment(CLIENT) public int getData() -
getPos
-