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
Modifier and TypeFieldDescriptionprivate final BoundingBox
The field for thebox
record component.private final int
The field for thegroundLevelDelta
record component.private final TerrainAdjustment
The field for theterrainAdjustment
record component. -
Constructor Summary
ConstructorDescriptionRigid
(BoundingBox box, TerrainAdjustment terrainAdjustment, int groundLevelDelta) Creates an instance of aRigid
record class. -
Method Summary
Modifier and TypeMethodDescriptionbox()
Returns the value of thebox
record component.final boolean
Indicates whether some other object is "equal to" this one.int
Returns the value of thegroundLevelDelta
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of theterrainAdjustment
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
box
The field for thebox
record component. -
terrainAdjustment
The field for theterrainAdjustment
record component. -
groundLevelDelta
private final int groundLevelDeltaThe field for thegroundLevelDelta
record component.
-
-
Constructor Details
-
Rigid
Creates an instance of aRigid
record class.- Parameters:
box
- the value for thebox
record componentterrainAdjustment
- the value for theterrainAdjustment
record componentgroundLevelDelta
- the value for thegroundLevelDelta
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
box
Returns the value of thebox
record component.- Returns:
- the value of the
box
record component
-
terrainAdjustment
Returns the value of theterrainAdjustment
record component.- Returns:
- the value of the
terrainAdjustment
record component
-
groundLevelDelta
public int groundLevelDelta()Returns the value of thegroundLevelDelta
record component.- Returns:
- the value of the
groundLevelDelta
record component
-