public class PlayerRespawnS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Modifier and Type | Field and Description |
---|---|
private DimensionType |
dimension |
private GameMode |
gameMode |
private LevelGeneratorType |
generatorType |
private long |
sha256Seed |
Constructor and Description |
---|
PlayerRespawnS2CPacket() |
PlayerRespawnS2CPacket(DimensionType dimension,
long sha256Seed,
LevelGeneratorType generatorType,
GameMode gameMode) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
DimensionType |
getDimension() |
GameMode |
getGameMode() |
LevelGeneratorType |
getGeneratorType() |
long |
getSha256Seed() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private DimensionType dimension
private long sha256Seed
private GameMode gameMode
private LevelGeneratorType generatorType
public PlayerRespawnS2CPacket()
public PlayerRespawnS2CPacket(DimensionType dimension, long sha256Seed, LevelGeneratorType generatorType, GameMode gameMode)
public void apply(ClientPlayPacketListener clientPlayPacketListener)
apply
in interface Packet<ClientPlayPacketListener>
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ClientPlayPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ClientPlayPacketListener>
IOException
@Environment(value=CLIENT) public DimensionType getDimension()
@Environment(value=CLIENT) public long getSha256Seed()
@Environment(value=CLIENT) public GameMode getGameMode()
@Environment(value=CLIENT) public LevelGeneratorType getGeneratorType()