Class ClientboundGameEventPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundGameEventPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ClientboundGameEventPacket.Type
static final ClientboundGameEventPacket.Type
static final ClientboundGameEventPacket.Type
static final int
static final int
static final int
static final int
static final int
private final ClientboundGameEventPacket.Type
static final ClientboundGameEventPacket.Type
static final ClientboundGameEventPacket.Type
static final ClientboundGameEventPacket.Type
static final ClientboundGameEventPacket.Type
static final ClientboundGameEventPacket.Type
private final float
static final ClientboundGameEventPacket.Type
static final ClientboundGameEventPacket.Type
static final ClientboundGameEventPacket.Type
static final ClientboundGameEventPacket.Type
static final StreamCodec
<FriendlyByteBuf, ClientboundGameEventPacket> static final ClientboundGameEventPacket.Type
static final ClientboundGameEventPacket.Type
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ClientboundGameEventPacket
(FriendlyByteBuf p_178865_) ClientboundGameEventPacket
(ClientboundGameEventPacket.Type pEvent, float pParam) -
Method Summary
Modifier and TypeMethodDescriptiongetEvent()
float
getParam()
void
handle
(ClientGamePacketListener pHandler) Passes this Packet on to the NetHandler for processing.type()
private void
write
(FriendlyByteBuf p_132180_) Writes the raw packet data to the data stream.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.protocol.Packet
isSkippable, isTerminal
-
Field Details
-
STREAM_CODEC
-
NO_RESPAWN_BLOCK_AVAILABLE
-
START_RAINING
-
STOP_RAINING
-
CHANGE_GAME_MODE
-
WIN_GAME
-
DEMO_EVENT
-
ARROW_HIT_PLAYER
-
RAIN_LEVEL_CHANGE
-
THUNDER_LEVEL_CHANGE
-
PUFFER_FISH_STING
-
GUARDIAN_ELDER_EFFECT
-
IMMEDIATE_RESPAWN
-
LIMITED_CRAFTING
-
LEVEL_CHUNKS_LOAD_START
-
DEMO_PARAM_INTRO
public static final int DEMO_PARAM_INTRO- See Also:
-
DEMO_PARAM_HINT_1
public static final int DEMO_PARAM_HINT_1- See Also:
-
DEMO_PARAM_HINT_2
public static final int DEMO_PARAM_HINT_2- See Also:
-
DEMO_PARAM_HINT_3
public static final int DEMO_PARAM_HINT_3- See Also:
-
DEMO_PARAM_HINT_4
public static final int DEMO_PARAM_HINT_4- See Also:
-
event
-
param
private final float param
-
-
Constructor Details
-
ClientboundGameEventPacket
-
ClientboundGameEventPacket
-
-
Method Details
-
write
Writes the raw packet data to the data stream. -
type
- Specified by:
type
in interfacePacket<ClientGamePacketListener>
-
handle
Passes this Packet on to the NetHandler for processing.- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-
getEvent
-
getParam
public float getParam()
-