Contents
Class ScriptedBrushAsset
java.lang.Object
com.hypixel.hytale.builtin.buildertools.scriptedbrushes.ScriptedBrushAsset
- All Implemented Interfaces:
JsonAsset<String>, JsonAssetWithMap<String, DefaultAssetMap<String, ScriptedBrushAsset>>
public class ScriptedBrushAsset
extends Object
implements JsonAssetWithMap<String, DefaultAssetMap<String, ScriptedBrushAsset>>
Asset type for scripted brushes that contain multiple brush operations.
This replaces the command-based brush loading system with a more structured asset-based approach.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AssetBuilderCodec<String, ScriptedBrushAsset> static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ScriptedBrushAssetstatic DefaultAssetMap<String, ScriptedBrushAsset> static StringgetEditorToolItemId(String brushId) getId()static voidvoidloadIntoExecutor(BrushConfigCommandExecutor executor) Loads the operations from this asset into a BrushConfigCommandExecutor.
-
Field Details
-
CODEC
-
DEFAULT_EDITOR_TOOL_ID
- See Also:
-
-
Constructor Details
-
ScriptedBrushAsset
public ScriptedBrushAsset()
-
-
Method Details
-
getAssetMap
-
get
-
getEditorToolItemId
-
invalidateBrushToItemCache
public static void invalidateBrushToItemCache() -
getId
-
getOperations
-
loadIntoExecutor
Loads the operations from this asset into a BrushConfigCommandExecutor. This separates global operations from sequential operations. If a LoadOperationsFromAssetOperation is encountered, it loads and inlines the operations from the referenced asset.
-