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
ConstructorDescriptionOutputBlockCodeGenerator
(BlocklyBlockCodeGenerator blocklyBlockCodeGenerator) Creates an instance of aOutputBlockCodeGenerator
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblocklyBlockCodeGenerator
record component.final boolean
Indicates whether some other object is "equal to" this one.void
generateBlock
(BlocklyToCode master, Element block) String[]
final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
OutputBlockCodeGenerator
Creates an instance of aOutputBlockCodeGenerator
record class.- Parameters:
blocklyBlockCodeGenerator
- the value for theblocklyBlockCodeGenerator
record component
-
-
Method Details
-
generateBlock
- Specified by:
generateBlock
in interfaceIBlockGenerator
- Throws:
TemplateGeneratorException
-
getSupportedBlocks
- Specified by:
getSupportedBlocks
in interfaceIBlockGenerator
-
getBlockType
- Specified by:
getBlockType
in 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 theblocklyBlockCodeGenerator
record component.- Returns:
- the value of the
blocklyBlockCodeGenerator
record component
-