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 BlockPosstatic final StreamCodec<FriendlyByteBuf, ClientboundLevelEventPacket> private final int -
Constructor Summary
ConstructorsModifierConstructorDescriptionClientboundLevelEventPacket(int type, BlockPos pos, int data, boolean globalEvent) private -
Method Summary
Modifier and TypeMethodDescriptionintgetData()getPos()intgetType()voidhandle(ClientGamePacketListener listener) booleantype()private voidwrite(FriendlyByteBuf output) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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
-
ClientboundLevelEventPacket
-
-
Method Details
-
write
-
type
- Specified by:
typein interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handlein interfacePacket<ClientGamePacketListener>
-
isGlobalEvent
public boolean isGlobalEvent() -
getType
public int getType() -
getData
public int getData() -
getPos
-