Package net.minecraft.util.math
Class GravityField
java.lang.Object
net.minecraft.util.math.GravityField
Represents a density field in an area. Consider visualizing it like real
life gravity's distortion of space.
- Mappings:
Namespace Name named net/minecraft/util/math/GravityField
intermediary net/minecraft/class_5263
official dcn
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
points
- Mappings:
Namespace Name Mixin selector named points
Lnet/minecraft/util/math/GravityField;points:Ljava/util/List;
intermediary field_24401
Lnet/minecraft/class_5263;field_24401:Ljava/util/List;
official a
Ldcn;a:Ljava/util/List;
-
-
Constructor Details
-
GravityField
public GravityField()
-
-
Method Details
-
addPoint
Adds a point to the gravity field.- Mappings:
Namespace Name Mixin selector named addPoint
Lnet/minecraft/util/math/GravityField;addPoint(Lnet/minecraft/util/math/BlockPos;D)V
intermediary method_27831
Lnet/minecraft/class_5263;method_27831(Lnet/minecraft/class_2338;D)V
official a
Ldcn;a(Liz;D)V
-
calculate
Calculate the gravity on a potential point atpos
withmass
.- Mappings:
Namespace Name Mixin selector named calculate
Lnet/minecraft/util/math/GravityField;calculate(Lnet/minecraft/util/math/BlockPos;D)D
intermediary method_27832
Lnet/minecraft/class_5263;method_27832(Lnet/minecraft/class_2338;D)D
official b
Ldcn;b(Liz;D)D
-