Package net.minecraft
Record Class class_6785.class_6786
java.lang.Object
java.lang.Record
net.minecraft.class_6785.class_6786
- Record Components:
feature-topFeature-
- Enclosing class:
- class_6785
private static record class_6785.class_6786(ConfiguredFeature<?,?> feature, Optional<PlacedFeature> topFeature)
extends Record
- Mappings:
Namespace Name official cwc$aintermediary net/minecraft/class_6785$class_6786named net/minecraft/class_6785$class_6786official 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
ConstructorsConstructorDescriptionclass_6786(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
-
class_6786
class_6786(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
-