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 final Class<? extends ParallelDispatchEvent>
The field for theevent
record component.private final 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 TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Class<? extends ParallelDispatchEvent>
event()
Returns the value of theevent
record component.final int
hashCode()
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 thestage
record component.final String
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<Void>, finalActivityGenerator()CompletableFuture<Void>> - Specified by:
finalActivityGenerator
in interfaceIModStateTransition
-
preDispatchHook
public BiFunction<Executor,? extends IModStateTransition.EventGenerator<?>, preDispatchHook()CompletableFuture<Void>> - Specified by:
preDispatchHook
in interfaceIModStateTransition
-
postDispatchHook
public BiFunction<Executor,? extends IModStateTransition.EventGenerator<?>, postDispatchHook()CompletableFuture<Void>> - 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
-