Package net.minecraft.world.gen.feature
Record Class StructureFeature.class_7150
java.lang.Object
java.lang.Record
net.minecraft.world.gen.feature.StructureFeature.class_7150
- Record Components:
position-generator-
- Enclosing class:
StructureFeature
public static record StructureFeature.class_7150(BlockPos position, Consumer<StructurePiecesCollector> generator)
extends Record
- Mappings:
Namespace Name official dgq$bintermediary net/minecraft/class_3195$class_7150named net/minecraft/world/gen/feature/StructureFeature$class_7150official aintermediary comp_571named positionofficial bintermediary comp_572named generator
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thegeneratorrecord component.final inthashCode()Returns a hash code value for this object.position()Returns the value of thepositionrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
class_7150
-
-
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). -
position
Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
generator
Returns the value of thegeneratorrecord component.- Returns:
- the value of the
generatorrecord component
-