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
Modifier and TypeFieldDescriptionprivate final int
The field for thedepth
record component.private final org.apache.commons.lang3.mutable.MutableObject<VoxelShape>
The field for thefree
record component.private final PoolElementStructurePiece
The field for thepiece
record component. -
Constructor Summary
ConstructorDescriptionPieceState
(PoolElementStructurePiece piece, org.apache.commons.lang3.mutable.MutableObject<VoxelShape> free, int depth) Creates an instance of aPieceState
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
depth()
Returns the value of thedepth
record component.final boolean
Indicates whether some other object is "equal to" this one.org.apache.commons.lang3.mutable.MutableObject<VoxelShape>
free()
Returns the value of thefree
record component.final int
hashCode()
Returns a hash code value for this object.piece()
Returns the value of thepiece
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
piece
The field for thepiece
record component. -
free
The field for thefree
record component. -
depth
private final int depthThe field for thedepth
record component.
-
-
Constructor Details
-
PieceState
PieceState(PoolElementStructurePiece piece, org.apache.commons.lang3.mutable.MutableObject<VoxelShape> free, int depth) Creates an instance of aPieceState
record class.- Parameters:
piece
- the value for thepiece
record componentfree
- the value for thefree
record componentdepth
- the value for thedepth
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 '=='. -
piece
Returns the value of thepiece
record component.- Returns:
- the value of the
piece
record component
-
free
Returns the value of thefree
record component.- Returns:
- the value of the
free
record component
-
depth
public int depth()Returns the value of thedepth
record component.- Returns:
- the value of the
depth
record component
-