NPCRoleAssetTypeHandler

public class NPCRoleAssetTypeHandler extends JsonTypeHandler

Class NPCRoleAssetTypeHandler. Provides npcroleassettypehandler functionality for the Hytale server.

java.lang.Object > JsonTypeHandler > NPCRoleAssetTypeHandler

Field Summary

rootPath

final Path rootPath

Field rootPath.

Method Detail

NPCRoleAssetTypeHandler

public public NPCRoleAssetTypeHandler ()

Method NPCRoleAssetTypeHandler.

AssetEditorAssetType

public new AssetEditorAssetType ("NPCRole", null, false, NPCPlugin.ROLE_ASSETS_PATH, ".json", AssetEditorEditorType.JsonSource)

Method AssetEditorAssetType.

Parameters:
"NPCRole" "NPCRole"
null null
false false
NPCPlugin.ROLE_ASSETS_PATH NPCPlugin.ROLE_ASSETS_PATH
".json" ".json"
AssetEditorEditorType.JsonSource AssetEditorEditorType.JsonSource

loadAssetFromDocument

public AssetLoadResult loadAssetFromDocument (final AssetPath assetPath, final Path dataPath, final BsonDocument document, final AssetUpdateQuery updateQuery, final EditorClient editorClient)

Method loadAssetFromDocument.

Parameters:
final AssetPath assetPath
final Path dataPath
final BsonDocument document
final AssetUpdateQuery updateQuery
final EditorClient editorClient

unloadAsset

public AssetLoadResult unloadAsset (@Nonnull final AssetPath path, final AssetUpdateQuery updateQuery)

Method unloadAsset.

Parameters:
@Nonnull final AssetPath path
final AssetUpdateQuery updateQuery

restoreOriginalAsset

public AssetLoadResult restoreOriginalAsset (@Nonnull final AssetPath originalAssetPath, final AssetUpdateQuery updateQuery)

Method restoreOriginalAsset.

Parameters:
@Nonnull final AssetPath originalAssetPath
final AssetUpdateQuery updateQuery

getDefaultUpdateQuery

public AssetUpdateQuery getDefaultUpdateQuery ()

Method getDefaultUpdateQuery.