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$ShapedPoolStructurePieceintermediary net/minecraft/class_3778$class_4181official ekv$anamed pieceintermediary comp_2017official anamed pieceShapeintermediary comp_2018official bnamed currentSizeintermediary comp_2019official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thecurrentSizerecord component.private final PoolStructurePieceThe field for thepiecerecord component.private final MutableObject<VoxelShape> The field for thepieceShaperecord component. -
Constructor Summary
ConstructorsConstructorDescriptionShapedPoolStructurePiece(PoolStructurePiece piece, MutableObject<VoxelShape> pieceShape, int currentSize) Creates an instance of aShapedPoolStructurePiecerecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecurrentSizerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.piece()Returns the value of thepiecerecord component.Returns the value of thepieceShaperecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
piece
The field for thepiecerecord component. -
pieceShape
The field for thepieceShaperecord component. -
currentSize
private final int currentSizeThe field for thecurrentSizerecord component.
-
-
Constructor Details
-
ShapedPoolStructurePiece
ShapedPoolStructurePiece(PoolStructurePiece piece, MutableObject<VoxelShape> pieceShape, int currentSize) Creates an instance of aShapedPoolStructurePiecerecord class.- Parameters:
piece- the value for thepiecerecord componentpieceShape- the value for thepieceShaperecord componentcurrentSize- the value for thecurrentSizerecord 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
-
pieceShape
Returns the value of thepieceShaperecord component.- Returns:
- the value of the
pieceShaperecord component
-
currentSize
public int currentSize()Returns the value of thecurrentSizerecord component.- Returns:
- the value of the
currentSizerecord component
-