Class ClientboundLoginPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundLoginPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate ResourceKey<Level>private DimensionTypeprivate GameTypeprivate booleanprivate static intprivate booleanprivate booleanprivate Set<ResourceKey<Level>>private intprivate intprivate GameTypeprivate booleanprivate RegistryAccess.RegistryHolderprivate longprivate boolean -
Constructor Summary
ConstructorsConstructorDescriptionClientboundLoginPacket(int p_132377_, GameType p_132378_, GameType p_132379_, long p_132380_, boolean p_132381_, Set<ResourceKey<Level>> p_132382_, RegistryAccess.RegistryHolder p_132383_, DimensionType p_132384_, ResourceKey<Level> p_132385_, int p_132386_, int p_132387_, boolean p_132388_, boolean p_132389_, boolean p_132390_, boolean p_132391_)ClientboundLoginPacket(FriendlyByteBuf p_178960_) -
Method Summary
Modifier and TypeMethodDescriptionintintintlonggetSeed()voidhandle(ClientGamePacketListener p_132397_)booleanisDebug()booleanisFlat()booleanbooleanlevels()booleanvoidwrite(FriendlyByteBuf p_132400_)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
-
HARDCORE_FLAG
private static final int HARDCORE_FLAG- See Also:
- Constant Field Values
-
playerId
private final int playerId -
seed
private final long seed -
hardcore
private final boolean hardcore -
gameType
-
previousGameType
-
levels
-
registryHolder
-
dimensionType
-
dimension
-
maxPlayers
private final int maxPlayers -
chunkRadius
private final int chunkRadius -
reducedDebugInfo
private final boolean reducedDebugInfo -
showDeathScreen
private final boolean showDeathScreen -
isDebug
private final boolean isDebug -
isFlat
private final boolean isFlat
-
-
Constructor Details
-
ClientboundLoginPacket
public ClientboundLoginPacket(int p_132377_, GameType p_132378_, @Nullable GameType p_132379_, long p_132380_, boolean p_132381_, Set<ResourceKey<Level>> p_132382_, RegistryAccess.RegistryHolder p_132383_, DimensionType p_132384_, ResourceKey<Level> p_132385_, int p_132386_, int p_132387_, boolean p_132388_, boolean p_132389_, boolean p_132390_, boolean p_132391_) -
ClientboundLoginPacket
-
-
Method Details
-
write
- Specified by:
writein interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handlein interfacePacket<ClientGamePacketListener>
-
getPlayerId
public int getPlayerId() -
getSeed
public long getSeed() -
isHardcore
public boolean isHardcore() -
getGameType
-
getPreviousGameType
-
levels
-
registryAccess
-
getDimensionType
-
getDimension
-
getMaxPlayers
public int getMaxPlayers() -
getChunkRadius
public int getChunkRadius() -
isReducedDebugInfo
public boolean isReducedDebugInfo() -
shouldShowDeathScreen
public boolean shouldShowDeathScreen() -
isDebug
public boolean isDebug() -
isFlat
public boolean isFlat()
-