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 Details Link icon

  • Constructor Details Link icon

    • ShapedPoolStructurePiece Link icon

      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 Link icon

    • toString Link icon

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode Link icon

      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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals Link icon

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • piece Link icon

      public PoolStructurePiece piece()
      Returns the value of the piece record component.
      Returns:
      the value of the piece record component
    • pieceShape Link icon

      public MutableObject<VoxelShape> pieceShape()
      Returns the value of the pieceShape record component.
      Returns:
      the value of the pieceShape record component
    • depth Link icon

      public int depth()
      Returns the value of the depth record component.
      Returns:
      the value of the depth record component