Record Class AdditionalCodeLinker
java.lang.Object
java.lang.Record
net.mcreator.blockly.AdditionalCodeLinker
- All Implemented Interfaces:
freemarker.template.TemplateDirectiveModel, freemarker.template.TemplateModel
public record AdditionalCodeLinker(BlocklyToCode master)
extends Record
implements freemarker.template.TemplateDirectiveModel
-
Field Summary
Fields inherited from interface freemarker.template.TemplateModel
NOTHING -
Constructor Summary
ConstructorsConstructorDescriptionAdditionalCodeLinker(BlocklyToCode master) Creates an instance of aAdditionalCodeLinkerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.voidexecute(freemarker.core.Environment env, Map params, freemarker.template.TemplateModel[] loopVars, freemarker.template.TemplateDirectiveBody body) final inthashCode()Returns a hash code value for this object.master()Returns the value of themasterrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AdditionalCodeLinker
Creates an instance of aAdditionalCodeLinkerrecord class.- Parameters:
master- the value for themasterrecord component
-
-
Method Details
-
execute
public void execute(freemarker.core.Environment env, Map params, freemarker.template.TemplateModel[] loopVars, freemarker.template.TemplateDirectiveBody body) throws freemarker.template.TemplateException, IOException - Specified by:
executein interfacefreemarker.template.TemplateDirectiveModel- Throws:
freemarker.template.TemplateExceptionIOException
-
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). -
master
Returns the value of themasterrecord component.- Returns:
- the value of the
masterrecord component
-