Class ClientboundGameEventPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundGameEventPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
-
Nested Class Summary
-
Field Summary
Modifier 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
private final float
static final ClientboundGameEventPacket.Type
static final ClientboundGameEventPacket.Type
static final ClientboundGameEventPacket.Type
static final ClientboundGameEventPacket.Type
static final ClientboundGameEventPacket.Type
static final ClientboundGameEventPacket.Type
-
Constructor Summary
ConstructorDescriptionClientboundGameEventPacket
(FriendlyByteBuf p_178865_) ClientboundGameEventPacket
(ClientboundGameEventPacket.Type p_132170_, float p_132171_) -
Method Summary
Modifier and TypeMethodDescriptiongetEvent()
float
getParam()
void
handle
(ClientGamePacketListener p_132177_) void
write
(FriendlyByteBuf p_132180_) 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, nextProtocol
-
Field Details
-
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
-
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
- Specified by:
write
in interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-
getEvent
-
getParam
public float getParam()
-