Renderer/src/main/java/electrosphere/server/datacell/gridded/GriddedDataCellTrackingData.java
austin 86c867fe31
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
GriddedDataCellTrackingData + reduce allocs
2025-04-04 16:34:13 -04:00

37 lines
824 B
Java

package electrosphere.server.datacell.gridded;
/**
* Data associated with a ServerDataCell by the GriddedDataCellManager
*/
public class GriddedDataCellTrackingData {
/**
* A really large distance used to reset the position
*/
public static final double REALLY_LARGE_DISTANCE = 1000;
/**
* The from the cell to the closest player
*/
double closestPlayer;
/**
* Gets the distance from the cell to the closest player
* @return The distance
*/
public double getClosestPlayer() {
return closestPlayer;
}
/**
* Sets the distance to the closest player
* @param closestPlayer The distance to the closest player
*/
public void setClosestPlayer(double closestPlayer) {
this.closestPlayer = closestPlayer;
}
}