Class SChangeGameStatePacket
- java.lang.Object
-
- net.minecraft.network.play.server.SChangeGameStatePacket
-
- All Implemented Interfaces:
IPacket<IClientPlayNetHandler>
public class SChangeGameStatePacket extends java.lang.Object implements IPacket<IClientPlayNetHandler>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SChangeGameStatePacket.State
-
Field Summary
Fields Modifier and Type Field Description static SChangeGameStatePacket.State
ARROW_HIT_PLAYER
static SChangeGameStatePacket.State
CHANGE_GAME_MODE
static SChangeGameStatePacket.State
DEMO_EVENT
private SChangeGameStatePacket.State
event
static SChangeGameStatePacket.State
GUARDIAN_ELDER_EFFECT
static SChangeGameStatePacket.State
IMMEDIATE_RESPAWN
static SChangeGameStatePacket.State
NO_RESPAWN_BLOCK_AVAILABLE
private float
param
static SChangeGameStatePacket.State
PUFFER_FISH_STING
static SChangeGameStatePacket.State
RAIN_LEVEL_CHANGE
static SChangeGameStatePacket.State
START_RAINING
static SChangeGameStatePacket.State
STOP_RAINING
static SChangeGameStatePacket.State
THUNDER_LEVEL_CHANGE
static SChangeGameStatePacket.State
WIN_GAME
-
Constructor Summary
Constructors Constructor Description SChangeGameStatePacket()
SChangeGameStatePacket(SChangeGameStatePacket.State p_i241263_1_, float p_i241263_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SChangeGameStatePacket.State
getEvent()
float
getParam()
void
handle(IClientPlayNetHandler p_148833_1_)
void
read(PacketBuffer p_148837_1_)
void
write(PacketBuffer p_148840_1_)
-
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.IPacket
isSkippable
-
-
-
-
Field Detail
-
NO_RESPAWN_BLOCK_AVAILABLE
public static final SChangeGameStatePacket.State NO_RESPAWN_BLOCK_AVAILABLE
-
START_RAINING
public static final SChangeGameStatePacket.State START_RAINING
-
STOP_RAINING
public static final SChangeGameStatePacket.State STOP_RAINING
-
CHANGE_GAME_MODE
public static final SChangeGameStatePacket.State CHANGE_GAME_MODE
-
WIN_GAME
public static final SChangeGameStatePacket.State WIN_GAME
-
DEMO_EVENT
public static final SChangeGameStatePacket.State DEMO_EVENT
-
ARROW_HIT_PLAYER
public static final SChangeGameStatePacket.State ARROW_HIT_PLAYER
-
RAIN_LEVEL_CHANGE
public static final SChangeGameStatePacket.State RAIN_LEVEL_CHANGE
-
THUNDER_LEVEL_CHANGE
public static final SChangeGameStatePacket.State THUNDER_LEVEL_CHANGE
-
PUFFER_FISH_STING
public static final SChangeGameStatePacket.State PUFFER_FISH_STING
-
GUARDIAN_ELDER_EFFECT
public static final SChangeGameStatePacket.State GUARDIAN_ELDER_EFFECT
-
IMMEDIATE_RESPAWN
public static final SChangeGameStatePacket.State IMMEDIATE_RESPAWN
-
event
private SChangeGameStatePacket.State event
-
param
private float param
-
-
Constructor Detail
-
SChangeGameStatePacket
public SChangeGameStatePacket()
-
SChangeGameStatePacket
public SChangeGameStatePacket(SChangeGameStatePacket.State p_i241263_1_, float p_i241263_2_)
-
-
Method Detail
-
read
public void read(PacketBuffer p_148837_1_) throws java.io.IOException
- Specified by:
read
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
java.io.IOException
-
write
public void write(PacketBuffer p_148840_1_) throws java.io.IOException
- Specified by:
write
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
java.io.IOException
-
handle
public void handle(IClientPlayNetHandler p_148833_1_)
- Specified by:
handle
in interfaceIPacket<IClientPlayNetHandler>
-
getEvent
public SChangeGameStatePacket.State getEvent()
-
getParam
public float getParam()
-
-