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
FieldsModifier and TypeFieldDescriptionprivate final int[][][]The field for theblockIdsrecord component.private final intThe field for thesizeXrecord component.private final intThe field for thesizeYrecord component.private final intThe field for thesizeZrecord component.private final boolean[][][]The field for thevoxelsrecord component. -
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.
-
Field Details
-
voxels
private final boolean[][][] voxelsThe field for thevoxelsrecord component. -
blockIds
@Nullable private final int[][][] blockIdsThe field for theblockIdsrecord component. -
sizeX
private final int sizeXThe field for thesizeXrecord component. -
sizeY
private final int sizeYThe field for thesizeYrecord component. -
sizeZ
private final int sizeZThe field for thesizeZrecord 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
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 '=='. -
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
-