Package net.mcreator.blockly.data
Class BlocklyLoader
java.lang.Object
net.mcreator.blockly.data.BlocklyLoader
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Create a newExternalBlockLoader
to load blocks for a specific Blockly panel.static void
addBuiltinCategory
(String name) Add a usable category for JSON file blocks that has been created inside the custom XMLToolboxType
file.static void
init()
-
Field Details
-
INSTANCE
-
-
Method Details
-
init
public static void init() -
addBlockLoader
Create a newExternalBlockLoader
to load blocks for a specific Blockly panel.- Parameters:
type
- The type of Blockly editor to register
-
addBuiltinCategory
Add a usable category for JSON file blocks that has been created inside the custom XMLToolboxType
file. All custom categories used by aToolboxType
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
-
getBuiltinCategories
-
getBlockLoader
-
getExternalTriggerLoader
-