Class ClientboundLevelEventPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundLevelEventPacket
- All Implemented Interfaces:
- Packet<ClientGamePacketListener>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final intprivate final booleanprivate final BlockPosstatic final StreamCodec<FriendlyByteBuf, ClientboundLevelEventPacket> private final int
- 
Constructor SummaryConstructorsModifierConstructorDescriptionClientboundLevelEventPacket(int p_132264_, BlockPos p_132265_, int p_132266_, boolean p_132267_) privateClientboundLevelEventPacket(FriendlyByteBuf p_178908_) 
- 
Method SummaryModifier and TypeMethodDescriptionintgetData()getPos()intgetType()voidhandle(ClientGamePacketListener p_132273_) booleantype()private voidwrite(FriendlyByteBuf p_132276_) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.protocol.PacketisSkippable, isTerminal
- 
Field Details- 
STREAM_CODEC
- 
typeprivate final int type
- 
pos
- 
dataprivate final int data
- 
globalEventprivate final boolean globalEvent
 
- 
- 
Constructor Details- 
ClientboundLevelEventPacketpublic ClientboundLevelEventPacket(int p_132264_, BlockPos p_132265_, int p_132266_, boolean p_132267_) 
- 
ClientboundLevelEventPacket
 
- 
- 
Method Details- 
write
- 
type- Specified by:
- typein interface- Packet<ClientGamePacketListener>
 
- 
handle- Specified by:
- handlein interface- Packet<ClientGamePacketListener>
 
- 
isGlobalEventpublic boolean isGlobalEvent()
- 
getTypepublic int getType()
- 
getDatapublic int getData()
- 
getPos
 
-