Contents
- Description
- Nested Class Summary
- Field Summary
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- get()
- getDataSourceForPath(AssetPath)
- getDataSourceForPack(String)
- getDataSources()
- getAssetTypeRegistry()
- getSchema(String)
- getClientOpenAssetPathMapping()
- getEditorClients(UUID)
- getOpenAssetPath(EditorClient)
- handleInitializeEditor(Ref, ComponentAccessor)
- handleInitializeClient(EditorClient)
- handleEditorClientDisconnected(EditorClient, PacketHandler.DisconnectReason)
- handleDeleteAssetPack(EditorClient, String)
- handleUpdateAssetPack(EditorClient, String, AssetPackManifest)
- handleCreateAssetPack(EditorClient, AssetPackManifest, int, int)
- handleExportAssets(EditorClient, List)
- handleSelectAsset(EditorClient, AssetPath)
- handleFetchLastModifiedAssets(EditorClient)
- handleAssetUpdate(EditorClient, AssetPath, byte[], int)
- handleJsonAssetUpdate(EditorClient, AssetPath, String, int, JsonUpdateCommand[], int)
- handleUndo(EditorClient, AssetPath, int)
- handleRedo(EditorClient, AssetPath, int)
- handleFetchAsset(EditorClient, AssetPath, int)
- handleFetchJsonAssetWithParents(EditorClient, AssetPath, boolean, int)
- handleRequestChildIds(EditorClient, AssetPath)
- handleDeleteAsset(EditorClient, AssetPath, int)
- handleSubscribeToModifiedAssetsChanges(EditorClient)
- handleUnsubscribeFromModifiedAssetsChanges(EditorClient)
- handleRenameAsset(EditorClient, AssetPath, AssetPath, int)
- handleDeleteDirectory(EditorClient, AssetPath, int)
- handleRenameDirectory(EditorClient, AssetPath, AssetPath, int)
- handleCreateDirectory(EditorClient, AssetPath, int)
- handleCreateAsset(EditorClient, AssetPath, byte[], AssetEditorRebuildCaches, String, int)
- handleRequestAssetInheritance(EditorClient, AssetPath, int)
Class AssetEditorPlugin
java.lang.Object
com.hypixel.hytale.server.core.plugin.PluginBase
com.hypixel.hytale.server.core.plugin.JavaPlugin
com.hypixel.hytale.builtin.asseteditor.AssetEditorPlugin
- All Implemented Interfaces:
CommandOwner
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
Fields inherited from class PluginBase
METRICS_REGISTRY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AssetEditorPluginget()getDataSourceForPack(String assetPack) getEditorClients(UUID uuid) getOpenAssetPath(EditorClient editorClient) voidhandleAssetUpdate(EditorClient editorClient, AssetPath assetPath, byte[] data, int requestToken) voidhandleCreateAsset(EditorClient editorClient, AssetPath assetPath, byte[] data, AssetEditorRebuildCaches rebuildCaches, String buttonId, int requestToken) voidhandleCreateAssetPack(EditorClient editorClient, AssetPackManifest packetManifest, int requestToken, int targetDirectoryIndex) voidhandleCreateDirectory(EditorClient editorClient, AssetPath assetPath, int requestToken) voidhandleDeleteAsset(EditorClient editorClient, AssetPath assetPath, int requestToken) voidhandleDeleteAssetPack(EditorClient editorClient, String packId) voidhandleDeleteDirectory(EditorClient editorClient, AssetPath assetPath, int requestToken) voidhandleEditorClientDisconnected(EditorClient editorClient, PacketHandler.DisconnectReason disconnectReason) voidhandleExportAssets(EditorClient editorClient, List<AssetPath> paths) voidhandleFetchAsset(EditorClient editorClient, AssetPath assetPath, int requestToken) voidhandleFetchJsonAssetWithParents(EditorClient editorClient, AssetPath assetPath, boolean isFromOpenedTab, int requestToken) voidhandleFetchLastModifiedAssets(EditorClient editorClient) voidhandleInitializeClient(EditorClient editorClient) voidhandleInitializeEditor(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor) Called to handle initialization request from the asset editorvoidhandleJsonAssetUpdate(EditorClient editorClient, AssetPath assetPath, String assetType, int assetIndex, JsonUpdateCommand[] commands, int requestToken) voidhandleRedo(EditorClient editorClient, AssetPath assetPath, int requestToken) voidhandleRenameAsset(EditorClient editorClient, AssetPath oldAssetPath, AssetPath newAssetPath, int requestToken) voidhandleRenameDirectory(EditorClient editorClient, AssetPath path, AssetPath newPath, int requestToken) voidhandleRequestAssetInheritance(EditorClient editorClient, AssetPath assetPath, int requestToken) voidhandleRequestChildIds(EditorClient editorClient, AssetPath assetPath) voidhandleSelectAsset(EditorClient editorClient, AssetPath assetPath) voidhandleSubscribeToModifiedAssetsChanges(EditorClient editorClient) voidhandleUndo(EditorClient editorClient, AssetPath assetPath, int requestToken) voidhandleUnsubscribeFromModifiedAssetsChanges(EditorClient editorClient) voidhandleUpdateAssetPack(EditorClient editorClient, String packId, AssetPackManifest packetManifest) Methods inherited from class JavaPlugin
getClassLoader, getFile, getTypeMethods inherited from class PluginBase
getAssetRegistry, getBasePermission, getChunkStoreRegistry, getClientFeatureRegistry, getCodecRegistry, getCodecRegistry, getCodecRegistry, getCommandRegistry, getDataDirectory, getEntityRegistry, getEntityStoreRegistry, getEventRegistry, getIdentifier, getLogger, getManifest, getName, getState, getTaskRegistry, isDisabled, isEnabled, preLoad
-
Constructor Details
-
AssetEditorPlugin
-
-
Method Details
-
get
-
getDataSourceForPath
-
getDataSourceForPack
-
getDataSources
-
getAssetTypeRegistry
-
getSchema
-
getClientOpenAssetPathMapping
-
getEditorClients
-
getOpenAssetPath
-
handleInitializeEditor
public void handleInitializeEditor(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> componentAccessor) Called to handle initialization request from the asset editor- Parameters:
ref- The entity reference of the instigating player entity.componentAccessor- TheComponentAccessor<EntityStore>for component access.
-
handleInitializeClient
-
handleEditorClientDisconnected
public void handleEditorClientDisconnected(@Nonnull EditorClient editorClient, @Nonnull PacketHandler.DisconnectReason disconnectReason) -
handleDeleteAssetPack
-
handleUpdateAssetPack
public void handleUpdateAssetPack(@Nonnull EditorClient editorClient, @Nonnull String packId, @Nonnull AssetPackManifest packetManifest) -
handleCreateAssetPack
public void handleCreateAssetPack(@Nonnull EditorClient editorClient, @Nonnull AssetPackManifest packetManifest, int requestToken, int targetDirectoryIndex) -
handleExportAssets
-
handleSelectAsset
-
handleFetchLastModifiedAssets
-
handleAssetUpdate
public void handleAssetUpdate(@Nonnull EditorClient editorClient, @Nonnull AssetPath assetPath, @Nonnull byte[] data, int requestToken) -
handleJsonAssetUpdate
public void handleJsonAssetUpdate(@Nonnull EditorClient editorClient, AssetPath assetPath, @Nonnull String assetType, int assetIndex, @Nonnull JsonUpdateCommand[] commands, int requestToken) -
handleUndo
public void handleUndo(@Nonnull EditorClient editorClient, @Nonnull AssetPath assetPath, int requestToken) -
handleRedo
public void handleRedo(@Nonnull EditorClient editorClient, @Nonnull AssetPath assetPath, int requestToken) -
handleFetchAsset
public void handleFetchAsset(@Nonnull EditorClient editorClient, @Nonnull AssetPath assetPath, int requestToken) -
handleFetchJsonAssetWithParents
public void handleFetchJsonAssetWithParents(@Nonnull EditorClient editorClient, @Nonnull AssetPath assetPath, boolean isFromOpenedTab, int requestToken) -
handleRequestChildIds
-
handleDeleteAsset
public void handleDeleteAsset(@Nonnull EditorClient editorClient, @Nonnull AssetPath assetPath, int requestToken) -
handleSubscribeToModifiedAssetsChanges
-
handleUnsubscribeFromModifiedAssetsChanges
-
handleRenameAsset
public void handleRenameAsset(@Nonnull EditorClient editorClient, @Nonnull AssetPath oldAssetPath, @Nonnull AssetPath newAssetPath, int requestToken) -
handleDeleteDirectory
public void handleDeleteDirectory(@Nonnull EditorClient editorClient, @Nonnull AssetPath assetPath, int requestToken) -
handleRenameDirectory
public void handleRenameDirectory(@Nonnull EditorClient editorClient, AssetPath path, AssetPath newPath, int requestToken) -
handleCreateDirectory
public void handleCreateDirectory(@Nonnull EditorClient editorClient, @Nonnull AssetPath assetPath, int requestToken) -
handleCreateAsset
public void handleCreateAsset(@Nonnull EditorClient editorClient, @Nonnull AssetPath assetPath, @Nonnull byte[] data, @Nonnull AssetEditorRebuildCaches rebuildCaches, String buttonId, int requestToken) -
handleRequestAssetInheritance
public void handleRequestAssetInheritance(@Nonnull EditorClient editorClient, @Nonnull AssetPath assetPath, int requestToken)
-