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
-
Field Summary
-
Constructor Summary
ConstructorDescriptionResearchStage
(List<ResearchObjective> objectives, List<InteractionResult> result, List<DescribableResource> resultSprites) Creates an instance of aResearchStage
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ResearchStage.Builder
builder()
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theobjectives
record component.static ResearchStage
read
(net.minecraft.network.FriendlyByteBuf buffer) result()
Returns the value of theresult
record component.Returns the value of theresultSprites
record component.final String
toString()
Returns a string representation of this record class.void
write
(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 aResearchStage
record class.- Parameters:
objectives
- the value for theobjectives
record componentresult
- the value for theresult
record componentresultSprites
- the value for theresultSprites
record 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 theobjectives
record component.- Returns:
- the value of the
objectives
record component
-
result
Returns the value of theresult
record component.- Returns:
- the value of the
result
record component
-
resultSprites
Returns the value of theresultSprites
record component.- Returns:
- the value of the
resultSprites
record component
-