Package net.mcreator.generator.blockly
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 net.mcreator.blockly.IBlockGenerator
IBlockGenerator.BlockTypeNested classes/interfaces inherited from interface net.mcreator.blockly.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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.mcreator.blockly.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
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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
-