Class ClientboundGameEventPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.level.ClientboundGameEventPacket
- All Implemented Interfaces:
Packet, MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundGameEventPacket(io.netty.buffer.ByteBuf in) ClientboundGameEventPacket(GameEvent notification, @Nullable GameEventValue value) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@Nullable GameEventValuegetValue()inthashCode()voidserialize(io.netty.buffer.ByteBuf out) @NonNull StringtoString()@NonNull ClientboundGameEventPacketwithNotification(GameEvent notification) @NonNull ClientboundGameEventPacketwithValue(@Nullable GameEventValue value) Methods inherited from interface Packet
isPriority, isTerminal
-
Constructor Details
-
ClientboundGameEventPacket
public ClientboundGameEventPacket(io.netty.buffer.ByteBuf in) -
ClientboundGameEventPacket
-
-
Method Details
-
serialize
public void serialize(io.netty.buffer.ByteBuf out) - Specified by:
serializein interfaceMinecraftPacket
-
getNotification
-
getValue
-
equals
-
canEqual
-
hashCode
-
toString
-
withNotification
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withValue
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-