Record Class SurfaceRules.SequenceRuleSource
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.SurfaceRules.SequenceRuleSource
- All Implemented Interfaces:
- Function<SurfaceRules.Context,,- SurfaceRules.SurfaceRule> - SurfaceRules.RuleSource
- Enclosing class:
- SurfaceRules
static record SurfaceRules.SequenceRuleSource(List<SurfaceRules.RuleSource> sequence)
extends Record
implements SurfaceRules.RuleSource
- 
Field SummaryFieldsModifier and TypeFieldDescription(package private) static final KeyDispatchDataCodec<SurfaceRules.SequenceRuleSource>private final List<SurfaceRules.RuleSource>The field for thesequencerecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionSequenceRuleSource(List<SurfaceRules.RuleSource> sequence) Creates an instance of aSequenceRuleSourcerecord class.
- 
Method SummaryModifier and TypeMethodDescriptionapply(SurfaceRules.Context p_189704_) KeyDispatchDataCodec<? extends SurfaceRules.RuleSource>codec()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.sequence()Returns the value of thesequencerecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
sequenceThe field for thesequencerecord component.
- 
CODEC
 
- 
- 
Constructor Details- 
SequenceRuleSourceSequenceRuleSource(List<SurfaceRules.RuleSource> sequence) Creates an instance of aSequenceRuleSourcerecord class.- Parameters:
- sequence- the value for the- sequencerecord component
 
 
- 
- 
Method Details- 
codec- Specified by:
- codecin interface- SurfaceRules.RuleSource
 
- 
apply- Specified by:
- applyin interface- Function<SurfaceRules.Context,- SurfaceRules.SurfaceRule> 
 
- 
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).
- 
sequenceReturns the value of thesequencerecord component.- Returns:
- the value of the sequencerecord component
 
 
-