Class ClientboundRespawnPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundRespawnPacket
- All Implemented Interfaces:
 Packet<ClientGamePacketListener>
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byteprivate final ResourceKey<Level>private final ResourceKey<DimensionType>private final booleanprivate final booleanstatic final bytestatic final bytestatic final byteprivate final GameTypeprivate final intprivate final GameTypeprivate final long - 
Constructor Summary
ConstructorsConstructorDescriptionClientboundRespawnPacket(FriendlyByteBuf p_179191_) ClientboundRespawnPacket(ResourceKey<DimensionType> p_287723_, ResourceKey<Level> p_287745_, long p_287746_, GameType p_287624_, GameType p_287780_, boolean p_287655_, boolean p_287735_, byte p_287694_, Optional<GlobalPos> p_287615_, int p_287636_)  - 
Method Summary
Modifier and TypeMethodDescriptionintlonggetSeed()voidhandle(ClientGamePacketListener p_132951_) booleanisDebug()booleanisFlat()booleanshouldKeep(byte p_263573_) voidwrite(FriendlyByteBuf p_132954_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
 - 
portalCooldown
private final int portalCooldown 
 - 
 - 
Constructor Details
- 
ClientboundRespawnPacket
public ClientboundRespawnPacket(ResourceKey<DimensionType> p_287723_, ResourceKey<Level> p_287745_, long p_287746_, GameType p_287624_, @Nullable GameType p_287780_, boolean p_287655_, boolean p_287735_, byte p_287694_, Optional<GlobalPos> p_287615_, int p_287636_)  - 
ClientboundRespawnPacket
 
 - 
 - 
Method Details
- 
write
- Specified by:
 writein interfacePacket<ClientGamePacketListener>
 - 
handle
- Specified by:
 handlein 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
 - 
getPortalCooldown
public int getPortalCooldown() 
 -