Package net.mcreator.blockly.java
Class BlocklyToProcedure
java.lang.Object
net.mcreator.blockly.BlocklyToCode
net.mcreator.blockly.java.BlocklyToJava
net.mcreator.blockly.java.BlocklyToProcedure
- All Implemented Interfaces:
IGeneratorProvider
,IWorkspaceProvider
-
Field Summary
Fields inherited from class net.mcreator.blockly.java.BlocklyToJava
LOG, variableGenerator
Fields inherited from class net.mcreator.blockly.BlocklyToCode
blockGenerators, editorType, lastProceduralBlockType
-
Constructor Summary
ConstructorDescriptionBlocklyToProcedure
(Workspace workspace, ModElement parent, String sourceXML, TemplateGenerator templateGenerator, IBlockGenerator... externalGenerators) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
postBlocksPlacement
(Document doc, Element startBlock, List<Element> baseBlocks) This method contains the code needing to be executed after blocks are placed.protected void
preBlocksPlacement
(Document doc, Element startBlock) This method contains the code needing to be executed before blocks are placed.void
setReturnType
(VariableType returnType) Methods inherited from class net.mcreator.blockly.java.BlocklyToJava
preInitialization
Methods inherited from class net.mcreator.blockly.BlocklyToCode
addCompileNote, addDependency, append, checkIfDepProviderInputsProvide, clearCodeGeneratorBuffer, directProcessOutputBlock, directProcessOutputBlockWithoutParentheses, directProcessStatementBlock, getCompileNotes, getDependencies, getEditorType, getGeneratedCode, getParent, getStatementInputsMatching, getTemplateGenerator, getUsedBlocks, getWorkspace, popDepProviderInputStack, processBlockProcedure, processOutputBlock, processOutputBlockToInt, processOutputBlockWithoutParentheses, processOutputBlockWithoutParentheses, pushDepProviderInputStack
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.mcreator.generator.IGeneratorProvider
getGenerator, getGeneratorConfiguration, getGeneratorStats
Methods inherited from interface net.mcreator.workspace.IWorkspaceProvider
getFileManager, getFolderManager, getModElementManager, getWorkspaceFolder, getWorkspaceSettings
-
Constructor Details
-
BlocklyToProcedure
public BlocklyToProcedure(Workspace workspace, ModElement parent, String sourceXML, TemplateGenerator templateGenerator, IBlockGenerator... externalGenerators) throws TemplateGeneratorException - Throws:
TemplateGeneratorException
-
-
Method Details
-
preBlocksPlacement
Description copied from class:BlocklyToJava
This method contains the code needing to be executed before blocks are placed.
- Overrides:
preBlocksPlacement
in classBlocklyToJava
- Parameters:
doc
- Blockly XML documentstartBlock
- The basic block of the editor used to get other blocks.
-
postBlocksPlacement
Description copied from class:BlocklyToJava
This method contains the code needing to be executed after blocks are placed.
- Overrides:
postBlocksPlacement
in classBlocklyToJava
- Parameters:
doc
- Blockly XML documentstartBlock
- The basic block of the editor used to get other blocks.baseBlocks
- A list of all blocks placed under start block.
-
getReturnType
-
setReturnType
-
getExternalTrigger
-
getLocalVariables
-