Class ClientboundLoginPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.ClientboundLoginPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundLoginPacket(int entityId, boolean hardcore, @NonNull String[] worldNames, int maxPlayers, int viewDistance, int simulationDistance, boolean reducedDebugInfo, boolean enableRespawnScreen, boolean doLimitedCrafting, PlayerSpawnInfo commonPlayerSpawnInfo, boolean enforcesSecureChat) ClientboundLoginPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanintintintint@NonNull String[]inthashCode()booleanbooleanbooleanbooleanbooleanvoidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ClientboundLoginPacketwithCommonPlayerSpawnInfo(PlayerSpawnInfo commonPlayerSpawnInfo) @NonNull ClientboundLoginPacketwithDoLimitedCrafting(boolean doLimitedCrafting) @NonNull ClientboundLoginPacketwithEnableRespawnScreen(boolean enableRespawnScreen) @NonNull ClientboundLoginPacketwithEnforcesSecureChat(boolean enforcesSecureChat) @NonNull ClientboundLoginPacketwithEntityId(int entityId) @NonNull ClientboundLoginPacketwithHardcore(boolean hardcore) @NonNull ClientboundLoginPacketwithMaxPlayers(int maxPlayers) @NonNull ClientboundLoginPacketwithReducedDebugInfo(boolean reducedDebugInfo) @NonNull ClientboundLoginPacketwithSimulationDistance(int simulationDistance) @NonNull ClientboundLoginPacketwithViewDistance(int viewDistance) @NonNull ClientboundLoginPacketwithWorldNames(@NonNull String[] worldNames) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.mcprotocollib.network.packet.Packet
isPriority
-
Constructor Details
-
ClientboundLoginPacket
-
ClientboundLoginPacket
public ClientboundLoginPacket(int entityId, boolean hardcore, @NonNull @NonNull String[] worldNames, int maxPlayers, int viewDistance, int simulationDistance, boolean reducedDebugInfo, boolean enableRespawnScreen, boolean doLimitedCrafting, PlayerSpawnInfo commonPlayerSpawnInfo, boolean enforcesSecureChat)
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getEntityId
public int getEntityId() -
isHardcore
public boolean isHardcore() -
getWorldNames
-
getMaxPlayers
public int getMaxPlayers() -
getViewDistance
public int getViewDistance() -
getSimulationDistance
public int getSimulationDistance() -
isReducedDebugInfo
public boolean isReducedDebugInfo() -
isEnableRespawnScreen
public boolean isEnableRespawnScreen() -
isDoLimitedCrafting
public boolean isDoLimitedCrafting() -
getCommonPlayerSpawnInfo
-
isEnforcesSecureChat
public boolean isEnforcesSecureChat() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withEntityId
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withHardcore
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withWorldNames
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withMaxPlayers
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withViewDistance
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSimulationDistance
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withReducedDebugInfo
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withEnableRespawnScreen
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDoLimitedCrafting
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withCommonPlayerSpawnInfo
public @NonNull ClientboundLoginPacket withCommonPlayerSpawnInfo(PlayerSpawnInfo commonPlayerSpawnInfo) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withEnforcesSecureChat
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-