Record Class ScratchProcedure.CurrentLine<ENVIRONMENT extends IScratchEnvironment,ARGUMENTS extends ScratchArguments<? super ENVIRONMENT,?>,INSTANCE extends IScratchBlockInstance<? super ENVIRONMENT>>
java.lang.Object
java.lang.Record
com.petrolpark.core.scratch.procedure.ScratchProcedure.CurrentLine<ENVIRONMENT,ARGUMENTS,INSTANCE>
- Enclosing class:
ScratchProcedure<ENVIRONMENT extends IScratchEnvironment,CONTEXT extends IScratchContext<CONTEXT>>
public static record ScratchProcedure.CurrentLine<ENVIRONMENT extends IScratchEnvironment,ARGUMENTS extends ScratchArguments<? super ENVIRONMENT,?>,INSTANCE extends IScratchBlockInstance<? super ENVIRONMENT>> (IInstantiableScratchBlock<? super ENVIRONMENT extends IScratchEnvironment,ARGUMENTS extends ScratchArguments<? super ENVIRONMENT,?>,INSTANCE extends IScratchBlockInstance<? super ENVIRONMENT>,?> block, ARGUMENTS extends ScratchArguments<? super ENVIRONMENT,?> arguments, INSTANCE extends IScratchBlockInstance<? super ENVIRONMENT> instance)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCurrentLine(IInstantiableScratchBlock<? super ENVIRONMENT, ARGUMENTS, INSTANCE, ?> block, ARGUMENTS arguments, ENVIRONMENT environment) CurrentLine(IInstantiableScratchBlock<? super ENVIRONMENT, ARGUMENTS, INSTANCE, ?> block, ARGUMENTS arguments, INSTANCE instance) Creates an instance of aCurrentLinerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theargumentsrecord component.IInstantiableScratchBlock<? super ENVIRONMENT, ARGUMENTS, INSTANCE, ?> block()Returns the value of theblockrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.instance()Returns the value of theinstancerecord component.booleanrun(ENVIRONMENT environment) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CurrentLine
public CurrentLine(IInstantiableScratchBlock<? super ENVIRONMENT, ARGUMENTS, INSTANCE, ?> block, ARGUMENTS arguments, ENVIRONMENT environment) -
CurrentLine
public CurrentLine(IInstantiableScratchBlock<? super ENVIRONMENT, ARGUMENTS, INSTANCE, ?> block, ARGUMENTS arguments, INSTANCE instance) Creates an instance of aCurrentLinerecord class.- Parameters:
block- the value for theblockrecord componentarguments- the value for theargumentsrecord componentinstance- the value for theinstancerecord component
-
-
Method Details
-
run
-
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). -
block
Returns the value of theblockrecord component.- Returns:
- the value of the
blockrecord component
-
arguments
Returns the value of theargumentsrecord component.- Returns:
- the value of the
argumentsrecord component
-
instance
Returns the value of theinstancerecord component.- Returns:
- the value of the
instancerecord component
-