Renderer/src/main/java/electrosphere/client/scene/ClientLevelEditorData.java
austin 7f33ba6348
All checks were successful
studiorailgun/Renderer/pipeline/head This commit looks good
moving data classes around
2025-05-11 16:32:37 -04:00

57 lines
1.1 KiB
Java

package electrosphere.client.scene;
import org.joml.Vector3d;
import electrosphere.data.block.BlockFab;
/**
* Stores the data for the client's level edits
*/
public class ClientLevelEditorData {
/**
* The currently edited fab
*/
private BlockFab currentFab;
/**
* The origin point of the current fab
*/
private Vector3d currentFabOrigin;
/**
* Gets the currently edited fab
* @return The fab if it exists, null otherwise
*/
public BlockFab getCurrentFab() {
return currentFab;
}
/**
* Sets the fab currently being edited
* @param currentFab The fab
*/
public void setCurrentFab(BlockFab currentFab) {
this.currentFab = currentFab;
}
/**
* Gets the origin point of the current fab
* @return The origin point
*/
public Vector3d getCurrentFabOrigin() {
return currentFabOrigin;
}
/**
* Sets the origin point of the current fab
* @param currentFabOrigin The origin point
*/
public void setCurrentFabOrigin(Vector3d currentFabOrigin) {
this.currentFabOrigin = currentFabOrigin;
}
}