public class PlayerRespawnS2CPacket extends Object implements Packet<ClientPlayPacketListener>
| Modifier and Type | Field and Description |
|---|---|
private boolean |
debugWorld |
private Identifier |
dimension |
private boolean |
flatWorld |
private GameMode |
gameMode |
private boolean |
keepPlayerAttributes |
private long |
sha256Seed |
| Constructor and Description |
|---|
PlayerRespawnS2CPacket() |
PlayerRespawnS2CPacket(Identifier identifier,
long sha256Seed,
GameMode gameMode,
boolean debugWorld,
boolean flatWorld,
boolean keepPlayerAttributes) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
Identifier |
getDimension() |
GameMode |
getGameMode() |
long |
getSha256Seed() |
boolean |
isDebugWorld() |
boolean |
isFlatWorld() |
void |
read(PacketByteBuf buf) |
boolean |
shouldKeepPlayerAttributes() |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisWritingErrorSkippableprivate Identifier dimension
private long sha256Seed
private GameMode gameMode
private boolean debugWorld
private boolean flatWorld
private boolean keepPlayerAttributes
public PlayerRespawnS2CPacket()
public PlayerRespawnS2CPacket(Identifier identifier, long sha256Seed, GameMode gameMode, boolean debugWorld, boolean flatWorld, boolean keepPlayerAttributes)
public void apply(ClientPlayPacketListener clientPlayPacketListener)
apply in interface Packet<ClientPlayPacketListener>public void read(PacketByteBuf buf) throws IOException
read in interface Packet<ClientPlayPacketListener>IOExceptionpublic void write(PacketByteBuf buf) throws IOException
write in interface Packet<ClientPlayPacketListener>IOException@Environment(value=CLIENT) public Identifier getDimension()
@Environment(value=CLIENT) public long getSha256Seed()
@Environment(value=CLIENT) public GameMode getGameMode()
@Environment(value=CLIENT) public boolean isDebugWorld()
@Environment(value=CLIENT) public boolean isFlatWorld()
@Environment(value=CLIENT) public boolean shouldKeepPlayerAttributes()