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"nullnullfalsefalseNPCPlugin.ROLE_ASSETS_PATHNPCPlugin.ROLE_ASSETS_PATH".json"".json"AssetEditorEditorType.JsonSourceAssetEditorEditorType.JsonSource
loadAssetFromDocument
public
AssetLoadResult
loadAssetFromDocument
(final AssetPath assetPath, final Path dataPath, final BsonDocument document, final AssetUpdateQuery updateQuery, final EditorClient editorClient)
Method loadAssetFromDocument.
- Parameters:
final AssetPathassetPathfinal PathdataPathfinal BsonDocumentdocumentfinal AssetUpdateQueryupdateQueryfinal EditorClienteditorClient
unloadAsset
public
AssetLoadResult
unloadAsset
(@Nonnull final AssetPath path, final AssetUpdateQuery updateQuery)
Method unloadAsset.
- Parameters:
@Nonnull final AssetPathpathfinal AssetUpdateQueryupdateQuery
restoreOriginalAsset
public
AssetLoadResult
restoreOriginalAsset
(@Nonnull final AssetPath originalAssetPath, final AssetUpdateQuery updateQuery)
Method restoreOriginalAsset.
- Parameters:
@Nonnull final AssetPathoriginalAssetPathfinal AssetUpdateQueryupdateQuery
getDefaultUpdateQuery
Method getDefaultUpdateQuery.