Record Class FeatureCountTracker.LevelData
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.feature.FeatureCountTracker.LevelData
- Enclosing class:
- FeatureCountTracker
static record FeatureCountTracker.LevelData(it.unimi.dsi.fastutil.objects.Object2IntMap<FeatureCountTracker.FeatureData> featureData, org.apache.commons.lang3.mutable.MutableInt chunksWithFeatures)
extends Record
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final org.apache.commons.lang3.mutable.MutableIntThe field for thechunksWithFeaturesrecord component.private final it.unimi.dsi.fastutil.objects.Object2IntMap<FeatureCountTracker.FeatureData>The field for thefeatureDatarecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionLevelData(it.unimi.dsi.fastutil.objects.Object2IntMap<FeatureCountTracker.FeatureData> featureData, org.apache.commons.lang3.mutable.MutableInt chunksWithFeatures) Creates an instance of aLevelDatarecord class.
- 
Method SummaryModifier and TypeMethodDescriptionorg.apache.commons.lang3.mutable.MutableIntReturns the value of thechunksWithFeaturesrecord component.final booleanIndicates whether some other object is "equal to" this one.it.unimi.dsi.fastutil.objects.Object2IntMap<FeatureCountTracker.FeatureData>Returns the value of thefeatureDatarecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
featureDataprivate final it.unimi.dsi.fastutil.objects.Object2IntMap<FeatureCountTracker.FeatureData> featureDataThe field for thefeatureDatarecord component.
- 
chunksWithFeaturesprivate final org.apache.commons.lang3.mutable.MutableInt chunksWithFeaturesThe field for thechunksWithFeaturesrecord component.
 
- 
- 
Constructor Details- 
LevelDataLevelData(it.unimi.dsi.fastutil.objects.Object2IntMap<FeatureCountTracker.FeatureData> featureData, org.apache.commons.lang3.mutable.MutableInt chunksWithFeatures) Creates an instance of aLevelDatarecord class.- Parameters:
- featureData- the value for the- featureDatarecord component
- chunksWithFeatures- the value for the- chunksWithFeaturesrecord 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).
- 
featureDataReturns the value of thefeatureDatarecord component.- Returns:
- the value of the featureDatarecord component
 
- 
chunksWithFeaturespublic org.apache.commons.lang3.mutable.MutableInt chunksWithFeatures()Returns the value of thechunksWithFeaturesrecord component.- Returns:
- the value of the chunksWithFeaturesrecord component
 
 
-