public class PlayerRespawnS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Modifier and Type | Field and Description |
---|---|
private boolean |
debugWorld |
private RegistryKey<World> |
dimension |
private DimensionType |
field_25322 |
private boolean |
flatWorld |
private GameMode |
gameMode |
private boolean |
keepPlayerAttributes |
private GameMode |
previousGameMode |
private long |
sha256Seed |
Constructor and Description |
---|
PlayerRespawnS2CPacket() |
PlayerRespawnS2CPacket(DimensionType dimensionType,
RegistryKey<World> registryKey,
long long2,
GameMode gameMode,
GameMode previousGameMode,
boolean bool,
boolean bool2,
boolean bool3) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
RegistryKey<World> |
getDimension() |
GameMode |
getGameMode() |
GameMode |
getPreviousGameMode() |
long |
getSha256Seed() |
boolean |
isDebugWorld() |
boolean |
isFlatWorld() |
DimensionType |
method_29445() |
void |
read(PacketByteBuf buf) |
boolean |
shouldKeepPlayerAttributes() |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private DimensionType field_25322
private RegistryKey<World> dimension
private long sha256Seed
private GameMode gameMode
private GameMode previousGameMode
private boolean debugWorld
private boolean flatWorld
private boolean keepPlayerAttributes
public PlayerRespawnS2CPacket()
public PlayerRespawnS2CPacket(DimensionType dimensionType, RegistryKey<World> registryKey, long long2, GameMode gameMode, GameMode previousGameMode, boolean bool, boolean bool2, boolean bool3)
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 method_29445()
@Environment(value=CLIENT) public RegistryKey<World> getDimension()
@Environment(value=CLIENT) public long getSha256Seed()
@Environment(value=CLIENT) public GameMode getGameMode()
@Environment(value=CLIENT) public GameMode getPreviousGameMode()
@Environment(value=CLIENT) public boolean isDebugWorld()
@Environment(value=CLIENT) public boolean isFlatWorld()
@Environment(value=CLIENT) public boolean shouldKeepPlayerAttributes()