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 SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionPieceState(PoolElementStructurePiece piece, org.apache.commons.lang3.mutable.MutableObject<VoxelShape> free, int depth) Creates an instance of aPieceStaterecord class.
- 
Method SummaryModifier 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- 
pieceThe field for thepiecerecord component.
- 
freeThe field for thefreerecord component.
- 
depthprivate final int depthThe field for thedepthrecord component.
 
- 
- 
Constructor Details- 
PieceStatePieceState(PoolElementStructurePiece piece, org.apache.commons.lang3.mutable.MutableObject<VoxelShape> free, int depth) Creates an instance of aPieceStaterecord class.- Parameters:
- piece- the value for the- piecerecord component
- free- the value for the- freerecord component
- depth- the value for the- depthrecord 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 '=='.
- 
pieceReturns the value of thepiecerecord component.- Returns:
- the value of the piecerecord component
 
- 
freeReturns the value of thefreerecord component.- Returns:
- the value of the freerecord component
 
- 
depthpublic int depth()Returns the value of thedepthrecord component.- Returns:
- the value of the depthrecord component
 
 
-