Class ClientboundGameEventPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundGameEventPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic int
static int
static int
static int
static int
private ClientboundGameEventPacket.Type
private float
-
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
-
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
-
DEMO_PARAM_INTRO
public static final int DEMO_PARAM_INTRO- See Also:
- Constant Field Values
-
DEMO_PARAM_HINT_1
public static final int DEMO_PARAM_HINT_1- See Also:
- Constant Field Values
-
DEMO_PARAM_HINT_2
public static final int DEMO_PARAM_HINT_2- See Also:
- Constant Field Values
-
DEMO_PARAM_HINT_3
public static final int DEMO_PARAM_HINT_3- See Also:
- Constant Field Values
-
DEMO_PARAM_HINT_4
public static final int DEMO_PARAM_HINT_4- See Also:
- Constant Field Values
-
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()
-