Package net.mcreator.blockly.data
Class BlocklyLoader
java.lang.Object
net.mcreator.blockly.data.BlocklyLoader
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidCreate a newExternalBlockLoaderto load blocks for a specific Blockly panel.static voidaddBuiltinCategory(String name) Add a usable category for JSON file blocks that has been created inside the custom XMLToolboxTypefile.static voidinit()
-
Field Details
-
INSTANCE
-
-
Method Details
-
init
public static void init() -
addBlockLoader
Create a newExternalBlockLoaderto 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 XMLToolboxTypefile. All custom categories used by aToolboxTypehave 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
-