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 Summary
FieldsModifier and TypeFieldDescriptionprivate final int
The field for thedepth
record component.private final PoolStructurePiece
The field for thepiece
record component.private final MutableObject
<VoxelShape> The field for thepieceShape
record component. -
Constructor Summary
ConstructorsConstructorDescriptionShapedPoolStructurePiece
(PoolStructurePiece piece, MutableObject<VoxelShape> pieceShape, int currentSize) -
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.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. -
depth
private final int depthThe field for thedepth
record 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)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
-
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
-
depth
public int depth()Returns the value of thedepth
record component.- Returns:
- the value of the
depth
record component
-