mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-28 07:37:58 +01:00
33 lines
716 B
Java
33 lines
716 B
Java
package com.minelittlepony.unicopia.entity;
|
|
|
|
import com.minelittlepony.unicopia.util.NbtSerialisable;
|
|
|
|
import net.minecraft.util.math.BlockPos;
|
|
import net.minecraft.util.math.Vec3d;
|
|
|
|
public interface Physics extends NbtSerialisable {
|
|
|
|
double calcGravity(double worldConstant);
|
|
|
|
Vec3d getMotionAngle();
|
|
|
|
float getGravityModifier();
|
|
|
|
float getBaseGravityModifier();
|
|
|
|
void setBaseGravityModifier(float constant);
|
|
|
|
boolean isFlying();
|
|
|
|
BlockPos getHeadPosition();
|
|
|
|
void spawnSprintingParticles();
|
|
|
|
default boolean isGravityNegative() {
|
|
return getGravityModifier() < 0;
|
|
}
|
|
|
|
default int getGravitySignum() {
|
|
return (int)Math.signum(getGravityModifier());
|
|
}
|
|
}
|