Record Class ConditionalAdvancement.Result
java.lang.Object
java.lang.Record
net.minecraftforge.common.crafting.ConditionalAdvancement.Result
- All Implemented Interfaces:
- ConditionalAdvancement.IResult
- Enclosing class:
- ConditionalAdvancement
private static record ConditionalAdvancement.Result(List<ConditionalAdvancement.Pair> advancements)
extends Record
implements ConditionalAdvancement.IResult
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final List<ConditionalAdvancement.Pair>The field for theadvancementsrecord component.
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprivateResult(List<ConditionalAdvancement.Pair> advancements) Creates an instance of aResultrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of theadvancementsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.com.google.gson.JsonObjectfinal StringtoString()Returns a string representation of this record class.
- 
Field Details- 
advancementsThe field for theadvancementsrecord component.
 
- 
- 
Constructor Details- 
ResultCreates an instance of aResultrecord class.- Parameters:
- advancements- the value for the- advancementsrecord component
 
 
- 
- 
Method Details- 
serializeToJsonpublic com.google.gson.JsonObject serializeToJson()- Specified by:
- serializeToJsonin interface- ConditionalAdvancement.IResult
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
advancementsReturns the value of theadvancementsrecord component.- Returns:
- the value of the advancementsrecord component
 
 
-