Record Class ResearchStage
java.lang.Object
java.lang.Record
com.pixelmonmod.pixelmon.api.research.ResearchStage
public record ResearchStage(List<ResearchObjective> objectives, List<InteractionResult> result, List<DescribableResource> resultSprites)
extends Record
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionResearchStage(List<ResearchObjective> objectives, List<InteractionResult> result, List<DescribableResource> resultSprites) Creates an instance of aResearchStagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ResearchStage.Builderbuilder()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theobjectivesrecord component.static ResearchStageread(net.minecraft.network.FriendlyByteBuf buffer) result()Returns the value of theresultrecord component.Returns the value of theresultSpritesrecord component.final StringtoString()Returns a string representation of this record class.voidwrite(net.minecraft.network.FriendlyByteBuf buffer)
-
Field Details
-
CODEC
-
-
Constructor Details
-
ResearchStage
public ResearchStage(List<ResearchObjective> objectives, List<InteractionResult> result, List<DescribableResource> resultSprites) Creates an instance of aResearchStagerecord class.- Parameters:
objectives- the value for theobjectivesrecord componentresult- the value for theresultrecord componentresultSprites- the value for theresultSpritesrecord component
-
-
Method Details
-
read
-
write
public void write(net.minecraft.network.FriendlyByteBuf buffer) -
builder
-
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). -
objectives
Returns the value of theobjectivesrecord component.- Returns:
- the value of the
objectivesrecord component
-
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-
resultSprites
Returns the value of theresultSpritesrecord component.- Returns:
- the value of the
resultSpritesrecord component
-