Package net.frozenblock.lib.gravity.api
Interface GravityFunction
- All Known Subinterfaces:
SerializableGravityFunction<T>
- All Known Implementing Classes:
AbsoluteGravityFunction,InterpolatedGravityFunction
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.phys.Vec3get(@Nullable net.minecraft.world.entity.Entity entity, double y, double minY, double maxY)
-
Method Details
-
get
net.minecraft.world.phys.Vec3 get(@Nullable @Nullable net.minecraft.world.entity.Entity entity, double y, double minY, double maxY) - Parameters:
entity- The optional entity being trackedy- The current y positionminY- The minimum Y position of the gravity beltmaxY- The maximum Y position of the gravity belt- Returns:
- The gravity value
-