Record Class ProceduralBlockCodeGenerator
java.lang.Object
java.lang.Record
net.mcreator.generator.blockly.ProceduralBlockCodeGenerator
- All Implemented Interfaces:
IBlockGenerator, IBlockGeneratorWithSections
public record ProceduralBlockCodeGenerator(BlocklyBlockCodeGenerator blocklyBlockCodeGenerator)
extends Record
implements IBlockGeneratorWithSections
-
Nested Class Summary
Nested classes/interfaces inherited from interface IBlockGenerator
IBlockGenerator.BlockTypeNested classes/interfaces inherited from interface IBlockGeneratorWithSections
IBlockGeneratorWithSections.Sections -
Constructor Summary
ConstructorsConstructorDescriptionProceduralBlockCodeGenerator(BlocklyBlockCodeGenerator blocklyBlockCodeGenerator) Creates an instance of aProceduralBlockCodeGeneratorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblocklyBlockCodeGeneratorrecord component.final booleanIndicates whether some other object is "equal to" this one.voidgenerateBlock(BlocklyToCode master, Element block) String[]final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Methods inherited from interface IBlockGeneratorWithSections
getBlockType
-
Constructor Details
-
ProceduralBlockCodeGenerator
Creates an instance of aProceduralBlockCodeGeneratorrecord class.- Parameters:
blocklyBlockCodeGenerator- the value for theblocklyBlockCodeGeneratorrecord component
-
-
Method Details
-
generateBlock
- Specified by:
generateBlockin interfaceIBlockGenerator- Throws:
TemplateGeneratorException
-
getSupportedBlocks
- Specified by:
getSupportedBlocksin interfaceIBlockGenerator
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
blocklyBlockCodeGenerator
Returns the value of theblocklyBlockCodeGeneratorrecord component.- Returns:
- the value of the
blocklyBlockCodeGeneratorrecord component
-