Class ClientboundRespawnPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundRespawnPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final byte
private final ResourceKey<Level>
private final ResourceKey<DimensionType>
private final boolean
private final boolean
static final byte
static final byte
static final byte
private final GameType
private final GameType
private final long
-
Constructor Summary
ConstructorDescriptionClientboundRespawnPacket
(FriendlyByteBuf p_179191_) ClientboundRespawnPacket
(ResourceKey<DimensionType> p_263565_, ResourceKey<Level> p_263578_, long p_263572_, GameType p_263577_, GameType p_263566_, boolean p_263576_, boolean p_263569_, byte p_263570_, Optional<GlobalPos> p_263580_) -
Method Summary
Modifier and TypeMethodDescriptionlong
getSeed()
void
handle
(ClientGamePacketListener p_132951_) boolean
isDebug()
boolean
isFlat()
boolean
shouldKeep
(byte p_263573_) void
write
(FriendlyByteBuf p_132954_) 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.protocol.Packet
isSkippable
-
Field Details
-
KEEP_ATTRIBUTES
public static final byte KEEP_ATTRIBUTES- See Also:
-
KEEP_ENTITY_DATA
public static final byte KEEP_ENTITY_DATA- See Also:
-
KEEP_ALL_DATA
public static final byte KEEP_ALL_DATA- See Also:
-
dimensionType
-
dimension
-
seed
private final long seed -
playerGameType
-
previousPlayerGameType
-
isDebug
private final boolean isDebug -
isFlat
private final boolean isFlat -
dataToKeep
private final byte dataToKeep -
lastDeathLocation
-
-
Constructor Details
-
ClientboundRespawnPacket
public ClientboundRespawnPacket(ResourceKey<DimensionType> p_263565_, ResourceKey<Level> p_263578_, long p_263572_, GameType p_263577_, @Nullable GameType p_263566_, boolean p_263576_, boolean p_263569_, byte p_263570_, Optional<GlobalPos> p_263580_) -
ClientboundRespawnPacket
-
-
Method Details
-
write
- Specified by:
write
in interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-
getDimensionType
-
getDimension
-
getSeed
public long getSeed() -
getPlayerGameType
-
getPreviousPlayerGameType
-
isDebug
public boolean isDebug() -
isFlat
public boolean isFlat() -
shouldKeep
public boolean shouldKeep(byte p_263573_) -
getLastDeathLocation
-