Class ClientboundRespawnPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundRespawnPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ResourceKey<Level>private final Holder<DimensionType>private final booleanprivate final booleanprivate final booleanprivate final GameTypeprivate final GameTypeprivate final long -
Constructor Summary
ConstructorsConstructorDescriptionClientboundRespawnPacket(Holder<DimensionType> p_206643_, ResourceKey<Level> p_206644_, long p_206645_, GameType p_206646_, GameType p_206647_, boolean p_206648_, boolean p_206649_, boolean p_206650_) ClientboundRespawnPacket(FriendlyByteBuf p_179191_) -
Method Summary
Modifier and TypeMethodDescriptionlonggetSeed()voidhandle(ClientGamePacketListener p_132951_) booleanisDebug()booleanisFlat()booleanvoidwrite(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
-
dimensionType
-
dimension
-
seed
private final long seed -
playerGameType
-
previousPlayerGameType
-
isDebug
private final boolean isDebug -
isFlat
private final boolean isFlat -
keepAllPlayerData
private final boolean keepAllPlayerData
-
-
Constructor Details
-
ClientboundRespawnPacket
public ClientboundRespawnPacket(Holder<DimensionType> p_206643_, ResourceKey<Level> p_206644_, long p_206645_, GameType p_206646_, @Nullable GameType p_206647_, boolean p_206648_, boolean p_206649_, boolean p_206650_) -
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() -
shouldKeepAllPlayerData
public boolean shouldKeepAllPlayerData()
-