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
Modifier and TypeFieldDescriptionprivate Class<? extends ParallelDispatchEvent>
The field for theevent
record component.private ModLoadingStage
The field for thestage
record component. -
Constructor Summary
ConstructorDescriptionParallelTransition(ModLoadingStage stage, Class<? extends ParallelDispatchEvent> event)
Creates an instance of aParallelTransition
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether some other object is "equal to" this one.Class<? extends ParallelDispatchEvent>
event()
Returns the value of theevent
record component.int
hashCode()
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 thestage
record component.toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraftforge.fml.IModStateTransition
build, nextModLoadingStage
-
Field Details
-
stage
The field for thestage
record component. -
event
The field for theevent
record component.
-
-
Constructor Details
-
ParallelTransition
ParallelTransition(ModLoadingStage stage, Class<? extends ParallelDispatchEvent> event)Creates an instance of aParallelTransition
record class.- Parameters:
stage
- the value for thestage
record componentevent
- the value for theevent
record component
-
-
Method Details
-
eventFunctionStream
- Specified by:
eventFunctionStream
in interfaceIModStateTransition
-
threadSelector
- Specified by:
threadSelector
in interfaceIModStateTransition
-
finalActivityGenerator
public BiFunction<Executor,CompletableFuture<List<Throwable>>,CompletableFuture<List<Throwable>>> finalActivityGenerator()- Specified by:
finalActivityGenerator
in interfaceIModStateTransition
-
preDispatchHook
public BiFunction<Executor,? extends IModStateTransition.EventGenerator<?>,CompletableFuture<List<Throwable>>> preDispatchHook()- Specified by:
preDispatchHook
in interfaceIModStateTransition
-
postDispatchHook
public BiFunction<Executor,? extends IModStateTransition.EventGenerator<?>,CompletableFuture<List<Throwable>>> postDispatchHook()- Specified by:
postDispatchHook
in 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 thestage
record component.- Returns:
- the value of the
stage
record component
-
event
Returns the value of theevent
record component.- Returns:
- the value of the
event
record component
-