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 SummaryFieldsModifier and TypeFieldDescriptionprivate final BoundingBoxThe field for theboxrecord component.private final intThe field for thegroundLevelDeltarecord component.private final TerrainAdjustmentThe field for theterrainAdjustmentrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionRigid(BoundingBox box, TerrainAdjustment terrainAdjustment, int groundLevelDelta) Creates an instance of aRigidrecord class.
- 
Method SummaryModifier 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- 
boxThe field for theboxrecord component.
- 
terrainAdjustmentThe field for theterrainAdjustmentrecord component.
- 
groundLevelDeltaprivate final int groundLevelDeltaThe field for thegroundLevelDeltarecord component.
 
- 
- 
Constructor Details- 
RigidCreates an instance of aRigidrecord class.- Parameters:
- box- the value for the- boxrecord component
- terrainAdjustment- the value for the- terrainAdjustmentrecord component
- groundLevelDelta- the value for the- groundLevelDeltarecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
boxReturns the value of theboxrecord component.- Returns:
- the value of the boxrecord component
 
- 
terrainAdjustmentReturns the value of theterrainAdjustmentrecord component.- Returns:
- the value of the terrainAdjustmentrecord component
 
- 
groundLevelDeltapublic int groundLevelDelta()Returns the value of thegroundLevelDeltarecord component.- Returns:
- the value of the groundLevelDeltarecord component
 
 
-