Package net.mcreator.generator.blockly
Record Class OutputBlockCodeGenerator
java.lang.Object
java.lang.Record
net.mcreator.generator.blockly.OutputBlockCodeGenerator
- All Implemented Interfaces:
IBlockGenerator
public record OutputBlockCodeGenerator(BlocklyBlockCodeGenerator blocklyBlockCodeGenerator)
extends Record
implements IBlockGenerator
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.mcreator.blockly.IBlockGenerator
IBlockGenerator.BlockType -
Constructor Summary
ConstructorsConstructorDescriptionOutputBlockCodeGenerator(BlocklyBlockCodeGenerator blocklyBlockCodeGenerator) Creates an instance of aOutputBlockCodeGeneratorrecord 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.
-
Constructor Details
-
OutputBlockCodeGenerator
Creates an instance of aOutputBlockCodeGeneratorrecord class.- Parameters:
blocklyBlockCodeGenerator- the value for theblocklyBlockCodeGeneratorrecord component
-
-
Method Details
-
generateBlock
- Specified by:
generateBlockin interfaceIBlockGenerator- Throws:
TemplateGeneratorException
-
getSupportedBlocks
- Specified by:
getSupportedBlocksin interfaceIBlockGenerator
-
getBlockType
- Specified by:
getBlockTypein 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
-