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
-
Nested Class Summary
Nested classes/interfaces inherited from class com.hypixel.hytale.builtin.asseteditor.assettypehandler.AssetTypeHandler
AssetTypeHandler.AssetLoadResult -
Field Summary
FieldsFields inherited from class com.hypixel.hytale.builtin.asseteditor.assettypehandler.AssetTypeHandler
cachedDefaultUpdateQuery, config, rootPath -
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 com.hypixel.hytale.builtin.asseteditor.assettypehandler.JsonTypeHandler
isValidData, loadAsset, loadAssetFromDocumentMethods inherited from class com.hypixel.hytale.builtin.asseteditor.assettypehandler.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
-