net.minecraft.network.protocol.game

public class ClientboundGameEventPacket

implements Packet<ClientGamePacketListener>

act
net.minecraft.network.protocol.game.ClientboundGameEventPacket
net.minecraft.class_2668
net.minecraft.network.packet.s2c.play.GameStateChangeS2CPacket
net.minecraft.network.protocol.game.PacketPlayOutGameStateChange

Field summary

Modifier and TypeField
public static final StreamCodec<FriendlyByteBuf, ClientboundGameEventPacket>
a
STREAM_CODEC
field_47927
CODEC
public static final ClientboundGameEventPacket$Type
b
NO_RESPAWN_BLOCK_AVAILABLE
field_25645
NO_RESPAWN_BLOCK
public static final ClientboundGameEventPacket$Type
c
START_RAINING
field_25646
RAIN_STARTED
public static final ClientboundGameEventPacket$Type
d
STOP_RAINING
field_25647
RAIN_STOPPED
public static final ClientboundGameEventPacket$Type
e
CHANGE_GAME_MODE
field_25648
GAME_MODE_CHANGED
public static final ClientboundGameEventPacket$Type
f
WIN_GAME
field_25649
GAME_WON
public static final ClientboundGameEventPacket$Type
g
DEMO_EVENT
field_25650
DEMO_MESSAGE_SHOWN
public static final ClientboundGameEventPacket$Type
h
ARROW_HIT_PLAYER
field_25651
PROJECTILE_HIT_PLAYER
public static final ClientboundGameEventPacket$Type
i
RAIN_LEVEL_CHANGE
field_25652
RAIN_GRADIENT_CHANGED
public static final ClientboundGameEventPacket$Type
j
THUNDER_LEVEL_CHANGE
field_25653
THUNDER_GRADIENT_CHANGED
public static final ClientboundGameEventPacket$Type
k
PUFFER_FISH_STING
field_25654
PUFFERFISH_STING
public static final ClientboundGameEventPacket$Type
l
GUARDIAN_ELDER_EFFECT
field_25655
ELDER_GUARDIAN_EFFECT
public static final ClientboundGameEventPacket$Type
m
IMMEDIATE_RESPAWN
field_25656
IMMEDIATE_RESPAWN
public static final ClientboundGameEventPacket$Type
n
LIMITED_CRAFTING
field_46189
LIMITED_CRAFTING_TOGGLED
public static final ClientboundGameEventPacket$Type
o
LEVEL_CHUNKS_LOAD_START
field_46637
INITIAL_CHUNKS_COMING
public static final int
p
DEMO_PARAM_INTRO
field_33328
DEMO_OPEN_SCREEN
public static final int
q
DEMO_PARAM_HINT_1
field_33329
DEMO_MOVEMENT_HELP
public static final int
r
DEMO_PARAM_HINT_2
field_33330
DEMO_JUMP_HELP
public static final int
s
DEMO_PARAM_HINT_3
field_33331
DEMO_INVENTORY_HELP
public static final int
t
DEMO_PARAM_HINT_4
field_33332
DEMO_EXPIRY_NOTICE
private final ClientboundGameEventPacket$Type
u
event
field_12199
reason
private final float
v
param
field_12198
value

Constructor summary

ModifierConstructor
public (ClientboundGameEventPacket$Type reason, float value)
private (FriendlyByteBuf buf)

Method summary

Modifier and TypeMethod
private void
a(vl arg0)
write(FriendlyByteBuf arg0)
method_55879(class_2540 arg0)
write(PacketByteBuf buf)
public PacketType<ClientboundGameEventPacket>
a()
type()
method_65080()
getPacketType()
public void
a(abl arg0)
handle(ClientGamePacketListener arg0)
method_11490(class_2602 arg0)
apply(ClientPlayPacketListener arg0)
public ClientboundGameEventPacket$Type
b()
getEvent()
method_11491()
getReason()
public float
e()
getParam()
method_11492()
getValue()