Class SRespawnPacket
java.lang.Object
net.minecraft.network.play.server.SRespawnPacket
- All Implemented Interfaces:
IPacket<IClientPlayNetHandler>
-
Field Summary
Modifier and TypeFieldDescriptionprivate RegistryKey<World>
private DimensionType
private boolean
private boolean
private boolean
private GameType
private GameType
private long
-
Constructor Summary
ConstructorDescriptionSRespawnPacket
(DimensionType p_i242084_1_, RegistryKey<World> p_i242084_2_, long p_i242084_3_, GameType p_i242084_5_, GameType p_i242084_6_, boolean p_i242084_7_, boolean p_i242084_8_, boolean p_i242084_9_) -
Method Summary
Modifier and TypeMethodDescriptionlong
getSeed()
void
handle
(IClientPlayNetHandler p_148833_1_) boolean
isDebug()
boolean
isFlat()
void
read
(PacketBuffer p_148837_1_) boolean
void
write
(PacketBuffer p_148840_1_) 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.IPacket
isSkippable
-
Field Details
-
dimensionType
-
dimension
-
seed
private long seed -
playerGameType
-
previousPlayerGameType
-
isDebug
private boolean isDebug -
isFlat
private boolean isFlat -
keepAllPlayerData
private boolean keepAllPlayerData
-
-
Constructor Details
-
SRespawnPacket
public SRespawnPacket() -
SRespawnPacket
public SRespawnPacket(DimensionType p_i242084_1_, RegistryKey<World> p_i242084_2_, long p_i242084_3_, GameType p_i242084_5_, GameType p_i242084_6_, boolean p_i242084_7_, boolean p_i242084_8_, boolean p_i242084_9_)
-
-
Method Details
-
handle
- Specified by:
handle
in interfaceIPacket<IClientPlayNetHandler>
-
read
- Specified by:
read
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
IOException
-
write
- Specified by:
write
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
IOException
-
getDimensionType
-
getDimension
-
getSeed
public long getSeed() -
getPlayerGameType
-
getPreviousPlayerGameType
-
isDebug
public boolean isDebug() -
isFlat
public boolean isFlat() -
shouldKeepAllPlayerData
public boolean shouldKeepAllPlayerData()
-