Package net.minecraft.world.level.biome
Record Class FeatureSorter.StepFeatureData
java.lang.Object
java.lang.Record
net.minecraft.world.level.biome.FeatureSorter.StepFeatureData
- Enclosing class:
- FeatureSorter
public static record FeatureSorter.StepFeatureData(List<PlacedFeature> features, ToIntFunction<PlacedFeature> indexMapping)
extends Record
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final List<PlacedFeature>The field for thefeaturesrecord component.private final ToIntFunction<PlacedFeature>The field for theindexMappingrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionStepFeatureData(List<PlacedFeature> p_220627_) StepFeatureData(List<PlacedFeature> features, ToIntFunction<PlacedFeature> indexMapping) Creates an instance of aStepFeatureDatarecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.features()Returns the value of thefeaturesrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theindexMappingrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
featuresThe field for thefeaturesrecord component.
- 
indexMappingThe field for theindexMappingrecord component.
 
- 
- 
Constructor Details- 
StepFeatureDataStepFeatureData(List<PlacedFeature> p_220627_) 
- 
StepFeatureDataCreates an instance of aStepFeatureDatarecord class.- Parameters:
- features- the value for the- featuresrecord component
- indexMapping- the value for the- indexMappingrecord component
 
 
- 
- 
Method Details- 
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).
- 
featuresReturns the value of thefeaturesrecord component.- Returns:
- the value of the featuresrecord component
 
- 
indexMappingReturns the value of theindexMappingrecord component.- Returns:
- the value of the indexMappingrecord component
 
 
-