Renderer/src/main/java/electrosphere/renderer/meshgen/BlockMeshgenData.java
austin 2d26a8e73a
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
fab tool work
2025-04-26 12:24:23 -04:00

35 lines
795 B
Java

package electrosphere.renderer.meshgen;
import org.joml.Vector3i;
/**
* Interface for data that can be pased to the block meshgen function
*/
public interface BlockMeshgenData {
/**
* Checks if the data is empty at a position
* @param x The x position
* @param y The y position
* @param z The z position
* @return true if it is empty, false otherwise
*/
public boolean isEmpty(int x, int y, int z);
/**
* Gets the type at a given position
* @param x The x position
* @param y The y position
* @param z The z position
* @return The type
*/
public short getType(int x, int y, int z);
/**
* Gets the dimensions of this data
* @return The dimensions
*/
public Vector3i getDimensions();
}