public class GravityField extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
GravityField.Point |
Modifier and Type | Field and Description |
---|---|
private List<GravityField.Point> |
points |
Constructor and Description |
---|
GravityField() |
Modifier and Type | Method and Description |
---|---|
void |
addPoint(BlockPos pos,
double mass)
Adds a point to the gravity field.
|
double |
calculate(BlockPos pos,
double mass)
Calculate the gravity on a potential point at
pos with mass . |
private final List<GravityField.Point> points