Contents
Class NPCRoleAssetTypeHandler
java.lang.Object
com.hypixel.hytale.builtin.asseteditor.assettypehandler.AssetTypeHandler
com.hypixel.hytale.builtin.asseteditor.assettypehandler.JsonTypeHandler
com.hypixel.hytale.builtin.npceditor.NPCRoleAssetTypeHandler
Created on 10/02/2021
-
Nested Class Summary
Nested classes/interfaces inherited from class AssetTypeHandler
AssetTypeHandler.AssetLoadResult -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionloadAssetFromDocument(AssetPath assetPath, Path dataPath, org.bson.BsonDocument document, AssetUpdateQuery updateQuery, EditorClient editorClient) restoreOriginalAsset(AssetPath originalAssetPath, AssetUpdateQuery updateQuery) unloadAsset(AssetPath path, AssetUpdateQuery updateQuery) Methods inherited from class JsonTypeHandler
isValidData, loadAsset, loadAssetFromDocumentMethods inherited from class AssetTypeHandler
getConfig, getRootPath, loadAsset, restoreOriginalAsset, unloadAsset
-
Field Details
-
TYPE_ID
- See Also:
-
-
Constructor Details
-
NPCRoleAssetTypeHandler
public NPCRoleAssetTypeHandler()
-
-
Method Details
-
loadAssetFromDocument
@Nonnull public AssetTypeHandler.AssetLoadResult loadAssetFromDocument(AssetPath assetPath, Path dataPath, org.bson.BsonDocument document, AssetUpdateQuery updateQuery, EditorClient editorClient) - Specified by:
loadAssetFromDocumentin classJsonTypeHandler
-
unloadAsset
@Nonnull public AssetTypeHandler.AssetLoadResult unloadAsset(@Nonnull AssetPath path, AssetUpdateQuery updateQuery) - Specified by:
unloadAssetin classAssetTypeHandler
-
restoreOriginalAsset
@Nonnull public AssetTypeHandler.AssetLoadResult restoreOriginalAsset(@Nonnull AssetPath originalAssetPath, AssetUpdateQuery updateQuery) - Specified by:
restoreOriginalAssetin classAssetTypeHandler
-
getDefaultUpdateQuery
- Specified by:
getDefaultUpdateQueryin classAssetTypeHandler
-