Class ClientboundRespawnPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundRespawnPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
-
Field Summary
Modifier and TypeFieldDescriptionprivate ResourceKey<Level>
private DimensionType
private boolean
private boolean
private boolean
private GameType
private GameType
private long
-
Constructor Summary
ConstructorDescriptionClientboundRespawnPacket(FriendlyByteBuf p_179191_)
ClientboundRespawnPacket(DimensionType p_132938_, ResourceKey<Level> p_132939_, long p_132940_, GameType p_132941_, GameType p_132942_, boolean p_132943_, boolean p_132944_, boolean p_132945_)
-
Method Summary
Modifier and TypeMethodDescriptionlong
getSeed()
void
handle(ClientGamePacketListener p_132951_)
boolean
isDebug()
boolean
isFlat()
boolean
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
-
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(DimensionType p_132938_, ResourceKey<Level> p_132939_, long p_132940_, GameType p_132941_, @Nullable GameType p_132942_, boolean p_132943_, boolean p_132944_, boolean p_132945_) -
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() -
shouldKeepAllPlayerData
public boolean shouldKeepAllPlayerData()
-