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
official eaj$a
intermediary net/minecraft/class_3778$class_4181
named net/minecraft/structure/pool/StructurePoolBasedGenerator$ShapedPoolStructurePiece
official a
intermediary comp_2017
named piece
official b
intermediary comp_2018
named pieceShape
official c
intermediary comp_2019
named currentSize
  • Field Details

  • Constructor Details

    • ShapedPoolStructurePiece

      ShapedPoolStructurePiece(PoolStructurePiece piece, MutableObject<VoxelShape> pieceShape, int currentSize)
      Creates an instance of a ShapedPoolStructurePiece record class.
      Parameters:
      piece - the value for the piece record component
      pieceShape - the value for the pieceShape record component
      currentSize - the value for the currentSize record component
  • Method Details

    • toString

      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

      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

      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

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

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

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