Class BlocklyLoader

java.lang.Object
net.mcreator.blockly.data.BlocklyLoader

public class BlocklyLoader extends Object
  • Field Details

  • Method Details

    • init

      public static void init()
    • addBlockLoader

      public void addBlockLoader(BlocklyEditorType type)
      Create a new ExternalBlockLoader to load blocks for a specific Blockly panel.
      Parameters:
      type - The type of Blockly editor to register
    • addBuiltinCategory

      public static void addBuiltinCategory(String name)
      Add a usable category for JSON file blocks that has been created inside the custom XML ToolboxType file. All custom categories used by a ToolboxType have to be added before blocks are loaded.
      Parameters:
      name - The category's name as written inside the XML file (e.g. <custom-thisName/>).
    • getAllBlockLoaders

      public Map<BlocklyEditorType,ExternalBlockLoader> getAllBlockLoaders()
    • getBuiltinCategories

      public static List<String> getBuiltinCategories()
    • getBlockLoader

      public ExternalBlockLoader getBlockLoader(BlocklyEditorType type)
    • getExternalTriggerLoader

      public ExternalTriggerLoader getExternalTriggerLoader()