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 Details

  • Constructor Details

    • ScriptedBrushAsset

      public ScriptedBrushAsset()
  • Method Details

    • getAssetMap

      @Nonnull public static DefaultAssetMap<String, ScriptedBrushAsset> getAssetMap()
    • get

      @Nullable public static ScriptedBrushAsset get(@Nonnull String id)
    • getEditorToolItemId

      @Nullable public static String getEditorToolItemId(@Nonnull String brushId)
    • invalidateBrushToItemCache

      public static void invalidateBrushToItemCache()
    • getId

      @Nonnull public String getId()
      Specified by:
      getId in interface JsonAsset<String>
    • getOperations

      @Nonnull public List<BrushOperation> getOperations()
    • loadIntoExecutor

      public void loadIntoExecutor(@Nonnull BrushConfigCommandExecutor executor)
      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.