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 SummaryNested classes/interfaces inherited from interface net.minecraftforge.fml.IModStateTransitionIModStateTransition.EventGenerator<T extends net.minecraftforge.eventbus.api.Event & IModBusEvent>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final Class<? extends ParallelDispatchEvent>The field for theeventrecord component.private final ModLoadingStageThe field for thestagerecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionParallelTransition(ModLoadingStage stage, Class<? extends ParallelDispatchEvent> event) Creates an instance of aParallelTransitionrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Class<? extends ParallelDispatchEvent>event()Returns the value of theeventrecord component.final inthashCode()Returns a hash code value for this object.BiFunction<Executor,? extends IModStateTransition.EventGenerator<?>, CompletableFuture<Void>> BiFunction<Executor,? extends IModStateTransition.EventGenerator<?>, CompletableFuture<Void>> stage()Returns the value of thestagerecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraftforge.fml.IModStateTransitionbuild, nextModLoadingStage
- 
Field Details- 
stageThe field for thestagerecord component.
- 
eventThe field for theeventrecord component.
 
- 
- 
Constructor Details- 
ParallelTransitionParallelTransition(ModLoadingStage stage, Class<? extends ParallelDispatchEvent> event) Creates an instance of aParallelTransitionrecord class.- Parameters:
- stage- the value for the- stagerecord component
- event- the value for the- eventrecord component
 
 
- 
- 
Method Details- 
eventFunctionStream- Specified by:
- eventFunctionStreamin interface- IModStateTransition
 
- 
threadSelector- Specified by:
- threadSelectorin interface- IModStateTransition
 
- 
finalActivityGeneratorpublic BiFunction<Executor,CompletableFuture<Void>, finalActivityGenerator()CompletableFuture<Void>> - Specified by:
- finalActivityGeneratorin interface- IModStateTransition
 
- 
preDispatchHookpublic BiFunction<Executor,? extends IModStateTransition.EventGenerator<?>, preDispatchHook()CompletableFuture<Void>> - Specified by:
- preDispatchHookin interface- IModStateTransition
 
- 
postDispatchHookpublic BiFunction<Executor,? extends IModStateTransition.EventGenerator<?>, postDispatchHook()CompletableFuture<Void>> - Specified by:
- postDispatchHookin interface- IModStateTransition
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
stageReturns the value of thestagerecord component.- Returns:
- the value of the stagerecord component
 
- 
eventReturns the value of theeventrecord component.- Returns:
- the value of the eventrecord component
 
 
-