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 booleandebugWorldprivate RegistryKey<World>dimensionprivate DimensionTypefield_25322private booleanflatWorldprivate GameModegameModeprivate booleankeepPlayerAttributesprivate GameModepreviousGameModeprivate longsha256Seed -
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 voidapply(ClientPlayPacketListener clientPlayPacketListener)RegistryKey<World>getDimension()GameModegetGameMode()GameModegetPreviousGameMode()longgetSha256Seed()booleanisDebugWorld()booleanisFlatWorld()DimensionTypemethod_29445()voidread(PacketByteBuf buf)booleanshouldKeepPlayerAttributes()voidwrite(PacketByteBuf buf)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
applyin interfacePacket<ClientPlayPacketListener>
-
read
- Specified by:
readin interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
write
- Specified by:
writein 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()
-