Interface BinaryOnOffSetter
- All Known Implementing Classes:
BinaryVoxels
public interface BinaryOnOffSetter
Getters and setters for reading and assigning binary state to voxels.
- Author:
- Owen Feehan
-
Method Summary
Modifier and Type Method Description booleanisOff(int x, int y, int z)Does the voxel at this point have an off state?default booleanisOff(Point3i point)Does the voxel at this point have an off state?booleanisOn(int x, int y, int z)Does the voxel at this point have an on state?default booleanisOn(Point3i point)Does the voxel at this point have an on state?voidsetOff(int x, int y, int z)Assigns an off state to a voxel at a particular point.default voidsetOff(Point3i point)Assigns an off state to a voxel at a particular point.voidsetOn(int x, int y, int z)Assigns an on state to a voxel at a particular point.default voidsetOn(Point3i point)Assigns an on state to a voxel at a particular point.
-
Method Details
-
isOn
boolean isOn(int x, int y, int z)Does the voxel at this point have an on state?- Parameters:
x- the x-component of the point.y- the y-component of the point.z- the z-component of the point.- Returns:
- true if the voxel has an on state.
-
isOff
boolean isOff(int x, int y, int z)Does the voxel at this point have an off state?- Parameters:
x- the x-component of the point.y- the y-component of the point.z- the z-component of the point.- Returns:
- true if the voxel has an off state.
-
setOn
void setOn(int x, int y, int z)Assigns an on state to a voxel at a particular point.- Parameters:
x- the x-component of the point.y- the y-component of the point.z- the z-component of the point.
-
setOff
void setOff(int x, int y, int z)Assigns an off state to a voxel at a particular point.- Parameters:
x- the x-component of the point.y- the y-component of the point.z- the z-component of the point.
-
setOn
Assigns an on state to a voxel at a particular point.- Parameters:
point- the point to assign an on state to.
-
setOff
Assigns an off state to a voxel at a particular point.- Parameters:
point- the point to assign an off state to.
-
isOn
Does the voxel at this point have an on state?- Parameters:
point- the point to assign an on state to.- Returns:
- true if the voxel has an on state.
-
isOff
Does the voxel at this point have an off state?- Parameters:
point- the point to assign an off state to.- Returns:
- true if the voxel has an off state.
-