Class ClientboundLevelEventPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundLevelEventPacket
- All Implemented Interfaces:
 Packet<ClientGamePacketListener>
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final booleanprivate final BlockPosprivate final int - 
Constructor Summary
ConstructorsConstructorDescriptionClientboundLevelEventPacket(int p_132264_, BlockPos p_132265_, int p_132266_, boolean p_132267_) ClientboundLevelEventPacket(FriendlyByteBuf p_178908_)  - 
Method Summary
Modifier and TypeMethodDescriptionintgetData()getPos()intgetType()voidhandle(ClientGamePacketListener p_132273_) booleanvoidwrite(FriendlyByteBuf p_132276_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.protocol.Packet
isSkippable, nextProtocol 
- 
Field Details
- 
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
- Specified by:
 writein interfacePacket<ClientGamePacketListener>
 - 
handle
- Specified by:
 handlein interfacePacket<ClientGamePacketListener>
 - 
isGlobalEvent
public boolean isGlobalEvent() - 
getType
public int getType() - 
getData
public int getData() - 
getPos
 
 -