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:
IPacketReceiver
-
Nested Class Summary
Nested classes/interfaces inherited from class com.hypixel.hytale.server.core.io.PacketHandler
PacketHandler.DisconnectReason, PacketHandler.PingInfo -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final EditorClientprivate static final com.hypixel.hytale.logger.HytaleLoggerFields inherited from class com.hypixel.hytale.server.core.io.handlers.GenericPacketHandler
packetHandlersFields inherited from class com.hypixel.hytale.server.core.io.PacketHandler
auth, channel, clientReadyForChunksFuture, clientReadyForChunksFutureStack, disconnectReason, MAX_PACKET_ID, pingIdRandom, pingInfo, protocolVersion, queuedPackets, queuePackets, registered -
Constructor Summary
ConstructorsConstructorDescriptionAssetEditorPacketHandler(io.netty.channel.Channel channel, ProtocolVersion protocolVersion, String language, PlayerAuthentication auth) AssetEditorPacketHandler(io.netty.channel.Channel channel, ProtocolVersion protocolVersion, String language, UUID uuid, String username) AssetEditorPacketHandler(io.netty.channel.Channel channel, ProtocolVersion protocolVersion, String language, UUID uuid, String username, byte[] referralData, HostAddress referralSource) -
Method Summary
Modifier and TypeMethodDescriptionvoidclosed(io.netty.channel.ChannelHandlerContext ctx) 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) voidhandle(AssetEditorRequestChildrenList packet) voidhandle(AssetEditorRequestDataset packet) voidhandle(AssetEditorSelectAsset packet) voidhandle(AssetEditorSetGameTime packet) voidvoidhandle(AssetEditorUndoChanges packet) voidhandle(AssetEditorUpdateAsset packet) voidhandle(AssetEditorUpdateAssetPack packet) voidhandle(AssetEditorUpdateJsonAsset packet) voidvoidhandle(Disconnect packet) voidhandle(UpdateLanguage packet) private voidinit()private booleanprivate booleanlacksPermission(int token) private booleanlacksPermission(int token, String permissionId) private booleanlacksPermission(String permissionId) voidMethods inherited from class com.hypixel.hytale.server.core.io.handlers.GenericPacketHandler
accept, newHandlerArray, registerHandler, registerNoOpHandlers, registerSubPacketHandlerMethods inherited from class com.hypixel.hytale.server.core.io.PacketHandler
clearTimeout, disconnect, disconnect0, getAuth, getChannel, getClientReadyForChunksFuture, getDisconnectReason, getOperationTimeoutThreshold, getPacketStatsRecorder, getPingInfo, getProtocolVersion, getQueuedPacketsCount, handle, handlePong, isCompressionEnabled, isLANConnection, isLocalConnection, logCloseMessage, logConnectionTimings, registered, registered0, sendPing, setClientReadyForChunksFuture, setCompressionEnabled, setQueuePackets, setTimeout, stillActive, tickPing, tryFlush, unregistered, unregistered0, write, write, write, writeNoCache, writePacket
-
Field Details
-
LOGGER
private static final com.hypixel.hytale.logger.HytaleLogger LOGGER -
editorClient
-
-
Constructor Details
-
AssetEditorPacketHandler
public AssetEditorPacketHandler(@Nonnull io.netty.channel.Channel channel, @Nonnull ProtocolVersion protocolVersion, String language, @Nonnull PlayerAuthentication auth) -
AssetEditorPacketHandler
public AssetEditorPacketHandler(@Nonnull io.netty.channel.Channel channel, @Nonnull ProtocolVersion protocolVersion, String language, UUID uuid, String username) -
AssetEditorPacketHandler
public AssetEditorPacketHandler(@Nonnull io.netty.channel.Channel channel, @Nonnull ProtocolVersion protocolVersion, String language, UUID uuid, String username, byte[] referralData, HostAddress referralSource)
-
-
Method Details
-
init
private void init() -
getEditorClient
-
getIdentifier
- Specified by:
getIdentifierin classPacketHandler
-
closed
public void closed(io.netty.channel.ChannelHandlerContext ctx) - Overrides:
closedin classPacketHandler
-
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
-
lacksPermission
private boolean lacksPermission(int token) -
lacksPermission
private boolean lacksPermission() -
lacksPermission
-
lacksPermission
-