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$ShapedPoolStructurePiece- intermediary - net/minecraft/class_3778$class_4181- official - eor$a- named - piece- intermediary - comp_2017- official - a- named - pieceShape- intermediary - comp_2018- official - b- named - depth- intermediary - comp_2019- official - c
- 
Field SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionShapedPoolStructurePiece(PoolStructurePiece piece, MutableObject<VoxelShape> pieceShape, int currentSize) 
- 
Method SummaryModifier 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- 
pieceThe field for thepiecerecord component.
- 
pieceShapeThe field for thepieceShaperecord component.
- 
depthprivate final int depthThe field for thedepthrecord component.
 
- 
- 
Constructor Details- 
ShapedPoolStructurePieceShapedPoolStructurePiece(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)V- intermediary - <init>- Lnet/minecraft/class_3778$class_4181;<init>(Lnet/minecraft/class_3790;Lorg/apache/commons/lang3/mutable/MutableObject;I)V- official - <init>- Leor$a;<init>(Lenj;Lorg/apache/commons/lang3/mutable/MutableObject;I)V
 
 
- 
- 
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
 
- 
pieceShapeReturns the value of thepieceShaperecord component.- Returns:
- the value of the pieceShaperecord component
 
- 
depthpublic int depth()Returns the value of thedepthrecord component.- Returns:
- the value of the depthrecord component
 
 
-