Class SRespawnPacket
- java.lang.Object
-
- net.minecraft.network.play.server.SRespawnPacket
-
- All Implemented Interfaces:
IPacket<IClientPlayNetHandler>
public class SRespawnPacket extends java.lang.Object implements IPacket<IClientPlayNetHandler>
-
-
Field Summary
Fields Modifier and Type Field Description private RegistryKey<World>
dimension
private DimensionType
dimensionType
private boolean
isDebug
private boolean
isFlat
private boolean
keepAllPlayerData
private GameType
playerGameType
private GameType
previousPlayerGameType
private long
seed
-
Constructor Summary
Constructors Constructor Description SRespawnPacket()
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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RegistryKey<World>
getDimension()
DimensionType
getDimensionType()
GameType
getPlayerGameType()
GameType
getPreviousPlayerGameType()
long
getSeed()
void
handle(IClientPlayNetHandler p_148833_1_)
boolean
isDebug()
boolean
isFlat()
void
read(PacketBuffer p_148837_1_)
boolean
shouldKeepAllPlayerData()
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 Detail
-
dimensionType
private DimensionType dimensionType
-
dimension
private RegistryKey<World> dimension
-
seed
private long seed
-
playerGameType
private GameType playerGameType
-
previousPlayerGameType
private GameType previousPlayerGameType
-
isDebug
private boolean isDebug
-
isFlat
private boolean isFlat
-
keepAllPlayerData
private boolean keepAllPlayerData
-
-
Constructor Detail
-
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 Detail
-
handle
public void handle(IClientPlayNetHandler p_148833_1_)
- Specified by:
handle
in interfaceIPacket<IClientPlayNetHandler>
-
read
public void read(PacketBuffer p_148837_1_) throws java.io.IOException
- Specified by:
read
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
java.io.IOException
-
write
public void write(PacketBuffer p_148840_1_) throws java.io.IOException
- Specified by:
write
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
java.io.IOException
-
getDimensionType
public DimensionType getDimensionType()
-
getDimension
public RegistryKey<World> getDimension()
-
getSeed
public long getSeed()
-
getPlayerGameType
public GameType getPlayerGameType()
-
getPreviousPlayerGameType
public GameType getPreviousPlayerGameType()
-
isDebug
public boolean isDebug()
-
isFlat
public boolean isFlat()
-
shouldKeepAllPlayerData
public boolean shouldKeepAllPlayerData()
-
-