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 Summary
Modifier and TypeFieldDescriptionprivate final org.apache.commons.lang3.mutable.MutableInt
The field for thechunksWithFeatures
record component.private final it.unimi.dsi.fastutil.objects.Object2IntMap
<FeatureCountTracker.FeatureData> The field for thefeatureData
record component. -
Constructor Summary
ConstructorDescriptionLevelData
(it.unimi.dsi.fastutil.objects.Object2IntMap<FeatureCountTracker.FeatureData> featureData, org.apache.commons.lang3.mutable.MutableInt chunksWithFeatures) Creates an instance of aLevelData
record class. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.commons.lang3.mutable.MutableInt
Returns the value of thechunksWithFeatures
record component.final boolean
Indicates whether some other object is "equal to" this one.it.unimi.dsi.fastutil.objects.Object2IntMap
<FeatureCountTracker.FeatureData> Returns the value of thefeatureData
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
featureData
private final it.unimi.dsi.fastutil.objects.Object2IntMap<FeatureCountTracker.FeatureData> featureDataThe field for thefeatureData
record component. -
chunksWithFeatures
private final org.apache.commons.lang3.mutable.MutableInt chunksWithFeaturesThe field for thechunksWithFeatures
record component.
-
-
Constructor Details
-
LevelData
LevelData(it.unimi.dsi.fastutil.objects.Object2IntMap<FeatureCountTracker.FeatureData> featureData, org.apache.commons.lang3.mutable.MutableInt chunksWithFeatures) Creates an instance of aLevelData
record class.- Parameters:
featureData
- the value for thefeatureData
record componentchunksWithFeatures
- the value for thechunksWithFeatures
record component
-
-
Method Details
-
toString
Returns 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. -
hashCode
public 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. -
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 thefeatureData
record component.- Returns:
- the value of the
featureData
record component
-
chunksWithFeatures
public org.apache.commons.lang3.mutable.MutableInt chunksWithFeatures()Returns the value of thechunksWithFeatures
record component.- Returns:
- the value of the
chunksWithFeatures
record component
-