public class SetupPacketHandler extends GenericConnectionPacketHandler
Class SetupPacketHandler. Provides setuppackethandler functionality for the Hytale server.
java.lang.Object > GenericConnectionPacketHandler > SetupPacketHandler
Field Summary
assets
private
PlayerCommonAssets
assets
Field assets.
receivedRequest
private
boolean
receivedRequest
Field receivedRequest.
clientViewRadiusChunks
private
int
clientViewRadiusChunks
Field clientViewRadiusChunks.
event
final
PlayerSetupConnectEvent
event
Field event.
clientReferral
final
ClientReferral
clientReferral
Field clientReferral.
serverConfig
final
HytaleServerConfig
serverConfig
Field serverConfig.
enableCompression
final
boolean
enableCompression
Field enableCompression.
otherPlayer
final
PlayerRef
otherPlayer
Field otherPlayer.
otherPlayerChannel
final
Channel
otherPlayerChannel
Field otherPlayerChannel.
reference
final
Ref
reference
Field reference.
world
final
World
world
Field world.
removalFuture
final
CompletableFuture
removalFuture
Field removalFuture.
worldSettings
final
WorldSettings
worldSettings
Field worldSettings.
requiredAssets
final
Asset[]
requiredAssets
Field requiredAssets.
future
final
CompletableFuture
future
Field future.
Method Detail
SetupPacketHandler
public
public
SetupPacketHandler
(@Nonnull final Channel channel, @Nonnull final ProtocolVersion protocolVersion, final String language, final UUID uuid, final String username)
Method SetupPacketHandler.
- Parameters:
@Nonnull final Channelchannel@Nonnull final ProtocolVersionprotocolVersionfinal Stringlanguagefinal UUIDuuidfinal Stringusername
getIdentifier
public
String
getIdentifier
()
Method getIdentifier.
PlayerSetupConnectEvent
public
new
PlayerSetupConnectEvent
(this, this.username, this.uuid, this.auth, this.referralData, this.referralSource)
Method PlayerSetupConnectEvent.
- Parameters:
thisthisthis.usernamethis.usernamethis.uuidthis.uuidthis.auththis.auththis.referralDatathis.referralDatathis.referralSourcethis.referralSource
ServerInfo
public
new
ServerInfo
(HytaleServer.get()
Method ServerInfo.
- Parameters:
HytaleServer.get(HytaleServer.get(
closed
public
void
closed
(final ChannelHandlerContext ctx)
Method closed.
- Parameters:
final ChannelHandlerContextctx
PlayerSetupDisconnectEvent
public
new
PlayerSetupDisconnectEvent
(this.username, this.uuid, this.auth, this.disconnectReason)
Method PlayerSetupDisconnectEvent.
- Parameters:
this.usernamethis.usernamethis.uuidthis.uuidthis.auththis.auththis.disconnectReasonthis.disconnectReason
if
public
else
if
(SingleplayerModule.isOwner(this.auth, this.uuid)
Method if.
- Parameters:
SingleplayerModule.isOwner(this.authSingleplayerModule.isOwner(this.auththis.uuidthis.uuid
SendCommonAssetsEvent
public
new
SendCommonAssetsEvent
(this, packet.assets)
Method SendCommonAssetsEvent.
- Parameters:
thisthispacket.assetspacket.assets
WorldLoadProgress
public
new
WorldLoadProgress
("Loading world...", 0, 0)
Method WorldLoadProgress.
- Parameters:
"Loadingworld..."00
WorldLoadFinished
public
new
WorldLoadFinished
()
Method WorldLoadFinished.