Class ToolboxBlock

java.lang.Object
net.mcreator.blockly.data.ToolboxBlock
Direct Known Subclasses:
DynamicBlockLoader.DynamicToolboxBlock

public class ToolboxBlock extends Object
  • Field Details

    • error_in_statement_blocks

      public boolean error_in_statement_blocks
  • Constructor Details

    • ToolboxBlock

      public ToolboxBlock()
  • Method Details

    • getFields

      @Nullable public List<String> getFields()
    • getRepeatingFields

      @Nullable public List<RepeatingField> getRepeatingFields()
    • getInputs

      public List<String> getInputs()
    • getAdvancedInputs

      public List<AdvancedInput> getAdvancedInputs()
    • getAllInputs

      public List<String> getAllInputs()
    • getStatements

      @Nullable public List<StatementInput> getStatements()
    • getRepeatingInputs

      public List<String> getRepeatingInputs()
    • getRepeatingAdvancedInputs

      public List<AdvancedInput> getRepeatingAdvancedInputs()
    • getAllRepeatingInputs

      public List<String> getAllRepeatingInputs()
    • getRepeatingStatements

      @Nullable public List<StatementInput> getRepeatingStatements()
    • getDependencies

      @Nullable public List<Dependency> getDependencies()
    • getWarnings

      @Nullable public List<String> getWarnings()
    • getRequiredAPIs

      @Nullable public List<String> getRequiredAPIs()
    • getToolboxCategory

      @Nullable public ToolboxCategory getToolboxCategory()
    • getType

      public IBlockGenerator.BlockType getType()
    • getMachineName

      public String getMachineName()
    • getToolboxInitStatements

      @Nullable public List<String> getToolboxInitStatements()
    • getToolboxXML

      public String getToolboxXML()
    • getToolboxTestXML

      public String getToolboxTestXML()
    • getBlocklyJSON

      public com.google.gson.JsonObject getBlocklyJSON()
    • getName

      public String getName()
    • getOutputType

      public String getOutputType()
      Returns:
      Output type String in Blockly format. Null if the block is not an output block.
    • getFieldType

      @Nullable public String getFieldType(String fieldName)
      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

      @Nullable public String getFieldDataList(String fieldName)
      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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object