Package net.mcreator.generator.blockly
Record Class ProceduralBlockCodeGenerator
java.lang.Object
java.lang.Record
net.mcreator.generator.blockly.ProceduralBlockCodeGenerator
- All Implemented Interfaces:
IBlockGenerator
public record ProceduralBlockCodeGenerator(BlocklyBlockCodeGenerator blocklyBlockCodeGenerator)
extends Record
implements IBlockGenerator
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.mcreator.blockly.IBlockGenerator
IBlockGenerator.BlockType
-
Constructor Summary
ConstructorDescriptionProceduralBlockCodeGenerator
(BlocklyBlockCodeGenerator blocklyBlockCodeGenerator) Creates an instance of aProceduralBlockCodeGenerator
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
-
ProceduralBlockCodeGenerator
Creates an instance of aProceduralBlockCodeGenerator
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
-