Record Class JigsawPlacement.PieceState
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.structure.pools.JigsawPlacement.PieceState
- Enclosing class:
JigsawPlacement
static record JigsawPlacement.PieceState(PoolElementStructurePiece piece, org.apache.commons.lang3.mutable.MutableObject<VoxelShape> free, int depth)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thedepthrecord component.private final org.apache.commons.lang3.mutable.MutableObject<VoxelShape> The field for thefreerecord component.private final PoolElementStructurePieceThe field for thepiecerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPieceState(PoolElementStructurePiece piece, org.apache.commons.lang3.mutable.MutableObject<VoxelShape> free, int depth) Creates an instance of aPieceStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionintdepth()Returns the value of thedepthrecord component.final booleanIndicates whether some other object is "equal to" this one.org.apache.commons.lang3.mutable.MutableObject<VoxelShape> free()Returns the value of thefreerecord component.final inthashCode()Returns a hash code value for this object.piece()Returns the value of thepiecerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
piece
The field for thepiecerecord component. -
free
The field for thefreerecord component. -
depth
private final int depthThe field for thedepthrecord component.
-
-
Constructor Details
-
PieceState
PieceState(PoolElementStructurePiece piece, org.apache.commons.lang3.mutable.MutableObject<VoxelShape> free, int depth) Creates an instance of aPieceStaterecord class.- Parameters:
piece- the value for thepiecerecord componentfree- the value for thefreerecord componentdepth- the value for thedepthrecord 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 '=='. -
piece
Returns the value of thepiecerecord component.- Returns:
- the value of the
piecerecord component
-
free
Returns the value of thefreerecord component.- Returns:
- the value of the
freerecord component
-
depth
public int depth()Returns the value of thedepthrecord component.- Returns:
- the value of the
depthrecord component
-