Package net.mcreator.blockly.data
Class ToolboxBlock
java.lang.Object
net.mcreator.blockly.data.ToolboxBlock
- Direct Known Subclasses:
DynamicBlockLoader.DynamicToolboxBlock
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
com.google.gson.JsonObject
getFieldDataList
(String fieldName) getFieldType
(String fieldName) getName()
getType()
int
hashCode()
-
Field Details
-
error_in_statement_blocks
public boolean error_in_statement_blocks
-
-
Constructor Details
-
ToolboxBlock
public ToolboxBlock()
-
-
Method Details
-
getFields
-
getRepeatingFields
-
getInputs
-
getAdvancedInputs
-
getAllInputs
-
getStatements
-
getRepeatingInputs
-
getRepeatingAdvancedInputs
-
getAllRepeatingInputs
-
getRepeatingStatements
-
getDependencies
-
getWarnings
-
getRequiredAPIs
-
getToolboxCategory
-
getType
-
getMachineName
-
getToolboxInitStatements
-
getToolboxXML
-
getToolboxTestXML
-
getBlocklyJSON
public com.google.gson.JsonObject getBlocklyJSON() -
getName
-
getOutputType
- Returns:
- Output type String in Blockly format. Null if the block is not an output block.
-
getFieldType
- Parameters:
fieldName
- Field name to get type of- Returns:
- Field type String in Blockly format. Null if the field does not exist, or we can't determine its type.
-
getFieldDataList
- Parameters:
fieldName
- Field name to get data list of- Returns:
- Field data list in JSON format. Null if the field does not exist, or the type of field does not specify a data list.
-
equals
-
hashCode
public int hashCode()
-