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-depth-
- Enclosing class:
StructurePoolBasedGenerator
private static record StructurePoolBasedGenerator.ShapedPoolStructurePiece(PoolStructurePiece piece, MutableObject<VoxelShape> pieceShape, int depth)
extends Record
- Mappings:
Namespace Name named net/minecraft/structure/pool/StructurePoolBasedGenerator$ShapedPoolStructurePieceintermediary net/minecraft/class_3778$class_4181official etr$anamed pieceintermediary comp_2017official anamed pieceShapeintermediary comp_2018official bnamed depthintermediary comp_2019official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thedepthrecord 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) -
Method Summary
Modifier and TypeMethodDescriptionintdepth()Returns the value of thedepthrecord 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. -
depth
private final int depthThe field for thedepthrecord component.
-
-
Constructor Details
-
ShapedPoolStructurePiece
ShapedPoolStructurePiece(PoolStructurePiece piece, MutableObject<VoxelShape> pieceShape, int currentSize) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/structure/pool/StructurePoolBasedGenerator$ShapedPoolStructurePiece;<init>(Lnet/minecraft/structure/PoolStructurePiece;Lorg/apache/commons/lang3/mutable/MutableObject;I)Vintermediary <init>Lnet/minecraft/class_3778$class_4181;<init>(Lnet/minecraft/class_3790;Lorg/apache/commons/lang3/mutable/MutableObject;I)Vofficial <init>Letr$a;<init>(Lesj;Lorg/apache/commons/lang3/mutable/MutableObject;I)V
-
-
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
-
depth
public int depth()Returns the value of thedepthrecord component.- Returns:
- the value of the
depthrecord component
-