Record Class MeshVoxelizer.VoxelResult

java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.buildertools.objimport.MeshVoxelizer.VoxelResult
Enclosing class:
MeshVoxelizer

public static record MeshVoxelizer.VoxelResult(boolean[][][] voxels, @Nullable int[][][] blockIds, int sizeX, int sizeY, int sizeZ) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final int[][][]
    The field for the blockIds record component.
    private final int
    The field for the sizeX record component.
    private final int
    The field for the sizeY record component.
    private final int
    The field for the sizeZ record component.
    private final boolean[][][]
    The field for the voxels record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    VoxelResult(boolean[][][] voxels, int[][][] blockIds, int sizeX, int sizeY, int sizeZ)
    Creates an instance of a VoxelResult record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int[][][]
    Returns the value of the blockIds record component.
    int
     
    final boolean
    Indicates whether some other object is "equal to" this one.
    int
    getBlockId(int x, int y, int z)
     
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the sizeX record component.
    int
    Returns the value of the sizeY record component.
    int
    Returns the value of the sizeZ record component.
    final String
    Returns a string representation of this record class.
    boolean[][][]
    Returns the value of the voxels record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • voxels

      private final boolean[][][] voxels
      The field for the voxels record component.
    • blockIds

      @Nullable private final int[][][] blockIds
      The field for the blockIds record component.
    • sizeX

      private final int sizeX
      The field for the sizeX record component.
    • sizeY

      private final int sizeY
      The field for the sizeY record component.
    • sizeZ

      private final int sizeZ
      The field for the sizeZ record component.
  • Constructor Details

    • VoxelResult

      public VoxelResult(boolean[][][] voxels, @Nullable int[][][] blockIds, int sizeX, int sizeY, int sizeZ)
      Creates an instance of a VoxelResult record class.
      Parameters:
      voxels - the value for the voxels record component
      blockIds - the value for the blockIds record component
      sizeX - the value for the sizeX record component
      sizeY - the value for the sizeY record component
      sizeZ - the value for the sizeZ record component
  • Method Details

    • countSolid

      public int countSolid()
    • getBlockId

      public int getBlockId(int x, int y, int z)
    • 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 o)
      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:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • voxels

      public boolean[][][] voxels()
      Returns the value of the voxels record component.
      Returns:
      the value of the voxels record component
    • blockIds

      @Nullable public int[][][] blockIds()
      Returns the value of the blockIds record component.
      Returns:
      the value of the blockIds record component
    • sizeX

      public int sizeX()
      Returns the value of the sizeX record component.
      Returns:
      the value of the sizeX record component
    • sizeY

      public int sizeY()
      Returns the value of the sizeY record component.
      Returns:
      the value of the sizeY record component
    • sizeZ

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