Package net.mcreator.generator.blockly
Class BlocklyBlockCodeGenerator
java.lang.Object
net.mcreator.generator.blockly.BlocklyBlockCodeGenerator
-
Constructor Summary
ConstructorDescriptionBlocklyBlockCodeGenerator
(Map<String, ToolboxBlock> blocks, Set<String> supportedBlocksGenerator) BlocklyBlockCodeGenerator
(Map<String, ToolboxBlock> blocks, Set<String> supportedBlocksGenerator, TemplateGenerator templateGenerator, Map<String, Object> additionalData) -
Method Summary
Modifier and TypeMethodDescriptionvoid
generateBlock
(BlocklyToCode master, Element block) String[]
getSupportedBlocks
(IBlockGenerator.BlockType blockType) setTemplateExtension
(String templateExtension)
-
Constructor Details
-
BlocklyBlockCodeGenerator
public BlocklyBlockCodeGenerator(Map<String, ToolboxBlock> blocks, Set<String> supportedBlocksGenerator) -
BlocklyBlockCodeGenerator
public BlocklyBlockCodeGenerator(Map<String, ToolboxBlock> blocks, Set<String> supportedBlocksGenerator, @Nullable TemplateGenerator templateGenerator, @Nullable Map<String, Object> additionalData)
-
-
Method Details
-
setTemplateExtension
-
generateBlock
- Throws:
TemplateGeneratorException
-
getSupportedBlocks
-