Record Class FeatureDebugLogger.FeatureData
java.lang.Object
java.lang.Record
net.minecraft.world.gen.feature.util.FeatureDebugLogger.FeatureData
- Record Components:
feature-topFeature-
- Enclosing class:
FeatureDebugLogger
private static record FeatureDebugLogger.FeatureData(ConfiguredFeature<?,?> feature, Optional<PlacedFeature> topFeature)
extends Record
- Mappings:
Namespace Name official dkm$aintermediary net/minecraft/class_6785$class_6786named net/minecraft/world/gen/feature/util/FeatureDebugLogger$FeatureDataofficial aintermediary comp_281named featureofficial bintermediary comp_282named topFeature
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ConfiguredFeature<?,?> The field for thefeaturerecord component.private final Optional<PlacedFeature>The field for thetopFeaturerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionFeatureData(ConfiguredFeature<?, ?> configuredFeature, Optional<PlacedFeature> optional) -
Method Summary
Modifier 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
-
feature
The field for thefeaturerecord component. -
topFeature
The field for thetopFeaturerecord component.
-
-
Constructor Details
-
FeatureData
FeatureData(ConfiguredFeature<?, ?> configuredFeature, Optional<PlacedFeature> optional)
-
-
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). -
feature
Returns the value of thefeaturerecord component.- Returns:
- the value of the
featurerecord component
-
topFeature
Returns the value of thetopFeaturerecord component.- Returns:
- the value of the
topFeaturerecord component
-