Package net.minecraft.structure.pool
Record Class StructurePoolBasedGenerator.ShapedPoolStructurePiece
java.lang.Object
java.lang.Record
net.minecraft.structure.pool.StructurePoolBasedGenerator.ShapedPoolStructurePiece
- Record Components:
piece
-pieceShape
-currentSize
-
- Enclosing class:
StructurePoolBasedGenerator
private static record StructurePoolBasedGenerator.ShapedPoolStructurePiece(PoolStructurePiece piece, MutableObject<VoxelShape> pieceShape, int currentSize)
extends Record
- Mappings:
Namespace Name named net/minecraft/structure/pool/StructurePoolBasedGenerator$ShapedPoolStructurePiece
intermediary net/minecraft/class_3778$class_4181
official epn$a
named piece
intermediary comp_2017
official a
named pieceShape
intermediary comp_2018
official b
named currentSize
intermediary comp_2019
official c
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
The field for thecurrentSize
record component.private final PoolStructurePiece
The field for thepiece
record component.private final MutableObject
<VoxelShape> The field for thepieceShape
record component. -
Constructor Summary
ConstructorDescriptionShapedPoolStructurePiece
(PoolStructurePiece piece, MutableObject<VoxelShape> pieceShape, int currentSize) Creates an instance of aShapedPoolStructurePiece
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the value of thecurrentSize
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.piece()
Returns the value of thepiece
record component.Returns the value of thepieceShape
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
piece
The field for thepiece
record component. -
pieceShape
The field for thepieceShape
record component. -
currentSize
private final int currentSizeThe field for thecurrentSize
record component.
-
-
Constructor Details
-
ShapedPoolStructurePiece
ShapedPoolStructurePiece(PoolStructurePiece piece, MutableObject<VoxelShape> pieceShape, int currentSize) Creates an instance of aShapedPoolStructurePiece
record class.- Parameters:
piece
- the value for thepiece
record componentpieceShape
- the value for thepieceShape
record componentcurrentSize
- the value for thecurrentSize
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
-
pieceShape
Returns the value of thepieceShape
record component.- Returns:
- the value of the
pieceShape
record component
-
currentSize
public int currentSize()Returns the value of thecurrentSize
record component.- Returns:
- the value of the
currentSize
record component
-