Contents
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
Result of voxelization.
-
Constructor Summary
ConstructorsConstructorDescriptionVoxelResult(boolean[][][] voxels, int[][][] blockIds, int sizeX, int sizeY, int sizeZ) Creates an instance of aVoxelResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionint[][][]blockIds()Returns the value of theblockIdsrecord component.intfinal booleanIndicates whether some other object is "equal to" this one.intgetBlockId(int x, int y, int z) final inthashCode()Returns a hash code value for this object.intsizeX()Returns the value of thesizeXrecord component.intsizeY()Returns the value of thesizeYrecord component.intsizeZ()Returns the value of thesizeZrecord component.final StringtoString()Returns a string representation of this record class.boolean[][][]voxels()Returns the value of thevoxelsrecord component.
-
Constructor Details
-
VoxelResult
public VoxelResult(boolean[][][] voxels, @Nullable int[][][] blockIds, int sizeX, int sizeY, int sizeZ) Creates an instance of aVoxelResultrecord class.- Parameters:
voxels- the value for thevoxelsrecord componentblockIds- the value for theblockIdsrecord componentsizeX- the value for thesizeXrecord componentsizeY- the value for thesizeYrecord componentsizeZ- the value for thesizeZrecord component
-
-
Method Details
-
countSolid
public int countSolid() -
getBlockId
public int getBlockId(int x, int y, int z) -
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
voxels
public boolean[][][] voxels()Returns the value of thevoxelsrecord component.- Returns:
- the value of the
voxelsrecord component
-
blockIds
@Nullable public int[][][] blockIds()Returns the value of theblockIdsrecord component.- Returns:
- the value of the
blockIdsrecord component
-
sizeX
public int sizeX()Returns the value of thesizeXrecord component.- Returns:
- the value of the
sizeXrecord component
-
sizeY
public int sizeY()Returns the value of thesizeYrecord component.- Returns:
- the value of the
sizeYrecord component
-
sizeZ
public int sizeZ()Returns the value of thesizeZrecord component.- Returns:
- the value of the
sizeZrecord component
-