Record Class FeatureCountTracker.LevelData
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.feature.FeatureCountTracker.LevelData
- Enclosing class:
FeatureCountTracker
private static record FeatureCountTracker.LevelData(it.unimi.dsi.fastutil.objects.Object2IntMap<FeatureCountTracker.FeatureData> featureData, org.apache.commons.lang3.mutable.MutableInt chunksWithFeatures)
extends Record
-
Field Summary
FieldsModifier 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 Summary
ConstructorsModifierConstructorDescriptionprivateLevelData(it.unimi.dsi.fastutil.objects.Object2IntMap<FeatureCountTracker.FeatureData> featureData, org.apache.commons.lang3.mutable.MutableInt chunksWithFeatures) Creates an instance of aLevelDatarecord class. -
Method Summary
Modifier 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
-
featureData
private final it.unimi.dsi.fastutil.objects.Object2IntMap<FeatureCountTracker.FeatureData> featureDataThe field for thefeatureDatarecord component. -
chunksWithFeatures
private final org.apache.commons.lang3.mutable.MutableInt chunksWithFeaturesThe field for thechunksWithFeaturesrecord component.
-
-
Constructor Details
-
LevelData
private LevelData(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 thefeatureDatarecord componentchunksWithFeatures- the value for thechunksWithFeaturesrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates 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). -
featureData
Returns the value of thefeatureDatarecord component.- Returns:
- the value of the
featureDatarecord component
-
chunksWithFeatures
public org.apache.commons.lang3.mutable.MutableInt chunksWithFeatures()Returns the value of thechunksWithFeaturesrecord component.- Returns:
- the value of the
chunksWithFeaturesrecord component
-