Package org.quiltmc.qsl.base.api.phase
Class PhaseData<T,P extends PhaseData<T,P>>
java.lang.Object
org.quiltmc.qsl.base.api.phase.PhaseData<T,P>
- Type Parameters:
T- the type of data held in a phaseP- the type of the phase data
Data of a phase.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected T(package private) final net.minecraft.util.Identifier(package private) PhaseData.VisitStatus -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddPreviousPhase(P phase) protected voidaddSubsequentPhase(P phase) getData()Returns the data held by this phase.@NotNull net.minecraft.util.IdentifiergetId()Returns the identifier of this phase.static <T,P extends PhaseData<T, P>>
voidlink(P first, P second) Links two given phases together.
-
Field Details
-
id
final net.minecraft.util.Identifier id -
data
-
subsequentPhases
-
previousPhases
-
visitStatus
PhaseData.VisitStatus visitStatus
-
-
Constructor Details
-
PhaseData
-
-
Method Details
-
getId
@Contract(pure=true) @NotNull public @NotNull net.minecraft.util.Identifier getId()Returns the identifier of this phase.- Returns:
- the identifier of this phase
-
getData
Returns the data held by this phase.- Returns:
- the data held by this phase
-
addSubsequentPhase
-
addPreviousPhase
-
link
Links two given phases together.- Type Parameters:
T- the type of data held by the phases- Parameters:
first- the phase that should be ordered firstsecond- the phase that should be ordered second
-