Class ClientboundLoginPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundLoginPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private ResourceKey<Level>
private DimensionType
private GameType
private boolean
private static int
private boolean
private boolean
private Set<ResourceKey<Level>>
private int
private int
private GameType
private boolean
private RegistryAccess.RegistryHolder
private long
private boolean
-
Constructor Summary
ConstructorDescriptionClientboundLoginPacket(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 TypeMethodDescriptionint
int
int
long
getSeed()
void
handle(ClientGamePacketListener p_132397_)
boolean
isDebug()
boolean
isFlat()
boolean
boolean
levels()
boolean
void
write(FriendlyByteBuf p_132400_)
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
-
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:
write
in interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handle
in 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()
-