Contents
- Description
- Nested Class Summary
- Field Summary
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- getEditorClient()
- getIdentifier()
- getAccountProfile()
- handle(ToServerPacket)
- disconnect(FormattedMessage)
- closed(NetworkChannel)
- registerHandlers()
- handle(AssetEditorSubscribeModifiedAssetsChanges)
- handle(AssetEditorUndoChanges)
- handle(AssetEditorRedoChanges)
- handle(AssetEditorFetchLastModifiedAssets)
- handle(AssetEditorExportAssets)
- handle(AssetEditorCreateAsset)
- handle(AssetEditorFetchAsset)
- handle(AssetEditorFetchJsonAssetWithParents)
- handle(AssetEditorRequestChildrenList)
- handle(AssetEditorUpdateAsset)
- handle(AssetEditorUpdateJsonAsset)
- handle(AssetEditorFetchAutoCompleteData)
- handle(AssetEditorRenameAsset)
- handle(AssetEditorDeleteAsset)
- handle(AssetEditorActivateButton)
- handle(AssetEditorRequestDataset)
- handle(AssetEditorSelectAsset)
- handle(AssetEditorCreateDirectory)
- handle(AssetEditorDeleteDirectory)
- handle(AssetEditorRenameDirectory)
- handle(UpdateLanguage)
- handle(AssetEditorSetGameTime)
- handle(AssetEditorUpdateWeatherPreviewLock)
- handle(AssetEditorUpdateAssetPackManifest)
- handle(AssetEditorDeleteAssetPack)
- handle(AssetEditorCreateAssetPack)
- handle(AssetEditorRequestAssetInheritance)
- handle(ClientDisconnect)
Class AssetEditorPacketHandler
java.lang.Object
com.hypixel.hytale.server.core.io.PacketHandler
com.hypixel.hytale.server.core.io.handlers.GenericPacketHandler
com.hypixel.hytale.builtin.asseteditor.AssetEditorPacketHandler
- All Implemented Interfaces:
ConnectionHandler, IPacketReceiver
- Since:
- 7/4/18
- Version:
- 1.0
-
Nested Class Summary
Nested classes/interfaces inherited from class PacketHandler
PacketHandler.DisconnectReason, PacketHandler.PingInfo -
Field Summary
Fields inherited from class PacketHandler
DEFAULT_STREAM_PRIORITIES, MAX_PACKET_ID -
Constructor Summary
ConstructorsConstructorDescriptionAssetEditorPacketHandler(ChannelConnection channel, ProtocolVersion protocolVersion, String language, PlayerAuthentication auth) AssetEditorPacketHandler(ChannelConnection channel, ProtocolVersion protocolVersion, String language, UUID uuid, String username) AssetEditorPacketHandler(ChannelConnection channel, ProtocolVersion protocolVersion, String language, UUID uuid, String username, byte[] referralData, HostAddress referralSource) -
Method Summary
Modifier and TypeMethodDescriptionvoidclosed(NetworkChannel channel) Called when the affiliated network channel has been closed.voiddisconnect(FormattedMessage message) Called to disconnect this connection for the given reason.Returns the account to track for lookups, bans, and kicks.voidhandle(AssetEditorActivateButton packet) voidhandle(AssetEditorCreateAsset packet) voidhandle(AssetEditorCreateAssetPack packet) voidhandle(AssetEditorCreateDirectory packet) voidhandle(AssetEditorDeleteAsset packet) voidhandle(AssetEditorDeleteAssetPack packet) voidhandle(AssetEditorDeleteDirectory packet) voidhandle(AssetEditorExportAssets packet) voidhandle(AssetEditorFetchAsset packet) voidvoidvoidvoidhandle(AssetEditorRedoChanges packet) voidhandle(AssetEditorRenameAsset packet) voidhandle(AssetEditorRenameDirectory packet) voidvoidhandle(AssetEditorRequestChildrenList packet) voidhandle(AssetEditorRequestDataset packet) voidhandle(AssetEditorSelectAsset packet) voidhandle(AssetEditorSetGameTime packet) voidvoidhandle(AssetEditorUndoChanges packet) voidhandle(AssetEditorUpdateAsset packet) voidvoidhandle(AssetEditorUpdateJsonAsset packet) voidvoidhandle(ClientDisconnect packet) voidhandle(UpdateLanguage packet) voidhandle(ToServerPacket packet) Called to handle the given incoming packet.voidMethods inherited from class GenericPacketHandler
accept, getSubPacketHandler, newHandlerArray, registerHandler, registerNoOpHandlers, registerSubPacketHandlerMethods inherited from class PacketHandler
checkStreamOpenRateLimit, compareAndSetChannel, disconnect, getAuth, getAuxiliaryChannelCount, getChannel, getChannel, getChannel, getClientReadyForChunksFuture, getDisconnectReason, getOperationTimeoutThreshold, getPacketStatsRecorder, getPingInfo, getProtocolVersion, getQueuedPacketsCount, getSniHostname, handlePong, isLANConnection, isLocalConnection, logCloseMessage, logConnectionTimings, registered, sendPing, setChannel, setChannel, setClientReadyForChunksFuture, setQueuePackets, stillActive, tickPing, tryFlush, unregistered, write, write, write, writeNoCache, writePacket
-
Constructor Details
-
AssetEditorPacketHandler
public AssetEditorPacketHandler(@Nonnull ChannelConnection channel, @Nonnull ProtocolVersion protocolVersion, String language, @Nonnull PlayerAuthentication auth) -
AssetEditorPacketHandler
public AssetEditorPacketHandler(@Nonnull ChannelConnection channel, @Nonnull ProtocolVersion protocolVersion, String language, UUID uuid, String username) -
AssetEditorPacketHandler
public AssetEditorPacketHandler(@Nonnull ChannelConnection channel, @Nonnull ProtocolVersion protocolVersion, String language, UUID uuid, String username, byte[] referralData, HostAddress referralSource)
-
-
Method Details
-
getEditorClient
-
getIdentifier
- Specified by:
getIdentifierin classPacketHandler- Returns:
- the unique identifier for this handler
-
getAccountProfile
Description copied from class:PacketHandlerReturns the account to track for lookups, bans, and kicks.Override this method for authenticated handlers. The profile must be available before registration and remain available through cleanup. The account UUID and whether this method returns
nullmust remain stable for this handler's lifetime. Keep this method nonblocking and free of side effects. Registry membership does not perform access checks.- Overrides:
getAccountProfilein classPacketHandler- Returns:
- the account to track, or
nullto exclude this handler
-
handle
Description copied from interface:ConnectionHandlerCalled to handle the given incoming packet.- Specified by:
handlein interfaceConnectionHandler- Overrides:
handlein classPacketHandler- Parameters:
packet- The packet to be handled
-
disconnect
Description copied from class:PacketHandlerCalled to disconnect this connection for the given reason.- Overrides:
disconnectin classPacketHandler- Parameters:
message- The formatted reason in which the connection is being disconnected
-
closed
Description copied from interface:ConnectionHandlerCalled when the affiliated network channel has been closed.- Specified by:
closedin interfaceConnectionHandler- Overrides:
closedin classPacketHandler- Parameters:
channel- The network channel that was closed, or null if unknown
-
registerHandlers
public void registerHandlers() -
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-