Record Class FeatureCountTracker.FeatureData
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.feature.FeatureCountTracker.FeatureData
- Enclosing class:
- FeatureCountTracker
static record FeatureCountTracker.FeatureData(ConfiguredFeature<?,?> feature, Optional<PlacedFeature> topFeature)
extends Record 
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final ConfiguredFeature<?,?> The field for thefeaturerecord component.private final Optional<PlacedFeature>The field for thetopFeaturerecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionFeatureData(ConfiguredFeature<?, ?> feature, Optional<PlacedFeature> topFeature) Creates an instance of aFeatureDatarecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.ConfiguredFeature<?,?> feature()Returns the value of thefeaturerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thetopFeaturerecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
featureThe field for thefeaturerecord component.
- 
topFeatureThe field for thetopFeaturerecord component.
 
- 
- 
Constructor Details- 
FeatureDataFeatureData(ConfiguredFeature<?, ?> feature, Optional<PlacedFeature> topFeature) Creates an instance of aFeatureDatarecord class.- Parameters:
- feature- the value for the- featurerecord component
- topFeature- the value for the- topFeaturerecord 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).
- 
featureReturns the value of thefeaturerecord component.- Returns:
- the value of the featurerecord component
 
- 
topFeatureReturns the value of thetopFeaturerecord component.- Returns:
- the value of the topFeaturerecord component
 
 
-