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
    boolean
    isOff(int x, int y, int z)
    Does the voxel at this point have an off state?
    default boolean
    isOff(Point3i point)
    Does the voxel at this point have an off state?
    boolean
    isOn(int x, int y, int z)
    Does the voxel at this point have an on state?
    default boolean
    isOn(Point3i point)
    Does the voxel at this point have an on state?
    void
    setOff(int x, int y, int z)
    Assigns an off state to a voxel at a particular point.
    default void
    setOff(Point3i point)
    Assigns an off state to a voxel at a particular point.
    void
    setOn(int x, int y, int z)
    Assigns an on state to a voxel at a particular point.
    default void
    setOn(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

      default void setOn(Point3i point)
      Assigns an on state to a voxel at a particular point.
      Parameters:
      point - the point to assign an on state to.
    • setOff

      default void setOff(Point3i point)
      Assigns an off state to a voxel at a particular point.
      Parameters:
      point - the point to assign an off state to.
    • isOn

      default boolean isOn(Point3i point)
      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

      default boolean isOff(Point3i point)
      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.