Class ClientboundLevelEventPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundLevelEventPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final boolean
private final BlockPos
static final StreamCodec
<FriendlyByteBuf, ClientboundLevelEventPacket> private final int
-
Constructor Summary
ModifierConstructorDescriptionClientboundLevelEventPacket
(int p_132264_, BlockPos p_132265_, int p_132266_, boolean p_132267_) private
ClientboundLevelEventPacket
(FriendlyByteBuf p_178908_) -
Method Summary
Modifier and TypeMethodDescriptionint
getData()
getPos()
int
getType()
void
handle
(ClientGamePacketListener p_132273_) boolean
type()
private void
write
(FriendlyByteBuf p_132276_) 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.protocol.Packet
isSkippable, isTerminal
-
Field Details
-
STREAM_CODEC
-
type
private final int type -
pos
-
data
private final int data -
globalEvent
private final boolean globalEvent
-
-
Constructor Details
-
ClientboundLevelEventPacket
public ClientboundLevelEventPacket(int p_132264_, BlockPos p_132265_, int p_132266_, boolean p_132267_) -
ClientboundLevelEventPacket
-
-
Method Details
-
write
-
type
- Specified by:
type
in interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-
isGlobalEvent
public boolean isGlobalEvent() -
getType
public int getType() -
getData
public int getData() -
getPos
-