Record Class Beardifier.Rigid
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.Beardifier.Rigid
- Enclosing class:
Beardifier
public static record Beardifier.Rigid(BoundingBox box, TerrainAdjustment terrainAdjustment, int groundLevelDelta)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BoundingBoxThe field for theboxrecord component.private final intThe field for thegroundLevelDeltarecord component.private final TerrainAdjustmentThe field for theterrainAdjustmentrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRigid(BoundingBox box, TerrainAdjustment terrainAdjustment, int groundLevelDelta) Creates an instance of aRigidrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbox()Returns the value of theboxrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thegroundLevelDeltarecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theterrainAdjustmentrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
box
The field for theboxrecord component. -
terrainAdjustment
The field for theterrainAdjustmentrecord component. -
groundLevelDelta
private final int groundLevelDeltaThe field for thegroundLevelDeltarecord component.
-
-
Constructor Details
-
Rigid
Creates an instance of aRigidrecord class.- Parameters:
box- the value for theboxrecord componentterrainAdjustment- the value for theterrainAdjustmentrecord componentgroundLevelDelta- the value for thegroundLevelDeltarecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
box
Returns the value of theboxrecord component.- Returns:
- the value of the
boxrecord component
-
terrainAdjustment
Returns the value of theterrainAdjustmentrecord component.- Returns:
- the value of the
terrainAdjustmentrecord component
-
groundLevelDelta
public int groundLevelDelta()Returns the value of thegroundLevelDeltarecord component.- Returns:
- the value of the
groundLevelDeltarecord component
-