Package net.minecraftforge.fml.core
Record Class ParallelTransition
java.lang.Object
java.lang.Record
net.minecraftforge.fml.core.ParallelTransition
- All Implemented Interfaces:
IModStateTransition
record ParallelTransition(ModLoadingStage stage, Class<? extends ParallelDispatchEvent> event)
extends Record
implements IModStateTransition
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraftforge.fml.IModStateTransition
IModStateTransition.EventGenerator<T extends net.minecraftforge.eventbus.api.Event & IModBusEvent> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Class<? extends ParallelDispatchEvent>The field for theeventrecord component.private ModLoadingStageThe field for thestagerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionParallelTransition(ModLoadingStage stage, Class<? extends ParallelDispatchEvent> event)Creates an instance of aParallelTransitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.Class<? extends ParallelDispatchEvent>event()Returns the value of theeventrecord component.inthashCode()Returns a hash code value for this object.BiFunction<Executor,? extends IModStateTransition.EventGenerator<?>,CompletableFuture<List<Throwable>>>BiFunction<Executor,? extends IModStateTransition.EventGenerator<?>,CompletableFuture<List<Throwable>>>stage()Returns the value of thestagerecord component.toString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraftforge.fml.IModStateTransition
build, nextModLoadingStage
-
Field Details
-
stage
The field for thestagerecord component. -
event
The field for theeventrecord component.
-
-
Constructor Details
-
ParallelTransition
ParallelTransition(ModLoadingStage stage, Class<? extends ParallelDispatchEvent> event)Creates an instance of aParallelTransitionrecord class.- Parameters:
stage- the value for thestagerecord componentevent- the value for theeventrecord component
-
-
Method Details
-
eventFunctionStream
- Specified by:
eventFunctionStreamin interfaceIModStateTransition
-
threadSelector
- Specified by:
threadSelectorin interfaceIModStateTransition
-
finalActivityGenerator
public BiFunction<Executor,CompletableFuture<List<Throwable>>,CompletableFuture<List<Throwable>>> finalActivityGenerator()- Specified by:
finalActivityGeneratorin interfaceIModStateTransition
-
preDispatchHook
public BiFunction<Executor,? extends IModStateTransition.EventGenerator<?>,CompletableFuture<List<Throwable>>> preDispatchHook()- Specified by:
preDispatchHookin interfaceIModStateTransition
-
postDispatchHook
public BiFunction<Executor,? extends IModStateTransition.EventGenerator<?>,CompletableFuture<List<Throwable>>> postDispatchHook()- Specified by:
postDispatchHookin interfaceIModStateTransition
-
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). -
stage
Returns the value of thestagerecord component.- Returns:
- the value of the
stagerecord component
-
event
Returns the value of theeventrecord component.- Returns:
- the value of the
eventrecord component
-