Class PlayerRespawnS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.PlayerRespawnS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class PlayerRespawnS2CPacket extends Object implements Packet<ClientPlayPacketListener>
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description PlayerRespawnS2CPacket()
PlayerRespawnS2CPacket(DimensionType dimensionType, RegistryKey<World> registryKey, long long2, GameMode gameMode, GameMode previousGameMode, boolean bool, boolean bool2, boolean bool3)
-
Method Summary
Modifier and Type Method 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)
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.Packet
isWritingErrorSkippable
-
Field Details
-
field_25322
-
dimension
-
sha256Seed
private long sha256Seed -
gameMode
-
previousGameMode
-
debugWorld
private boolean debugWorld -
flatWorld
private boolean flatWorld -
keepPlayerAttributes
private boolean keepPlayerAttributes
-
-
Constructor Details
-
PlayerRespawnS2CPacket
public PlayerRespawnS2CPacket() -
PlayerRespawnS2CPacket
public PlayerRespawnS2CPacket(DimensionType dimensionType, RegistryKey<World> registryKey, long long2, GameMode gameMode, @Nullable GameMode previousGameMode, boolean bool, boolean bool2, boolean bool3)
-
-
Method Details
-
apply
- Specified by:
apply
in interfacePacket<ClientPlayPacketListener>
-
read
- Specified by:
read
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
-
write
- Specified by:
write
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
-
method_29445
-
getDimension
-
getSha256Seed
@Environment(CLIENT) public long getSha256Seed() -
getGameMode
-
getPreviousGameMode
-
isDebugWorld
@Environment(CLIENT) public boolean isDebugWorld() -
isFlatWorld
@Environment(CLIENT) public boolean isFlatWorld() -
shouldKeepPlayerAttributes
@Environment(CLIENT) public boolean shouldKeepPlayerAttributes()
-