public class MountedFlyingParameters extends java.lang.Object implements ControlledMovementLogic
Modifier and Type | Field and Description |
---|---|
static com.mojang.serialization.Codec<MountedFlyingParameters> |
CODEC |
Constructor and Description |
---|
MountedFlyingParameters() |
MountedFlyingParameters(float upperAngleLimit,
float lowerAngleLimit,
float maxFlySpeed,
float decelerationRate,
float hoverDecelerationRate,
float accelerationRate,
float strafeAccelerationRate,
float strafeRollConversion,
float turnRate,
float pitchRate,
boolean staysHorizontalFlying,
float gravityDropPerTick,
boolean continuousForwardMotion,
int continuousForwardMotionTicks,
int flyingStaminaCharges,
int hoverTicks)
Constructor providing all the modifiable values
|
public static com.mojang.serialization.Codec<MountedFlyingParameters> CODEC
public MountedFlyingParameters(float upperAngleLimit, float lowerAngleLimit, float maxFlySpeed, float decelerationRate, float hoverDecelerationRate, float accelerationRate, float strafeAccelerationRate, float strafeRollConversion, float turnRate, float pitchRate, boolean staysHorizontalFlying, float gravityDropPerTick, boolean continuousForwardMotion, int continuousForwardMotionTicks, int flyingStaminaCharges, int hoverTicks)
upperAngleLimit
- The upper angle limitlowerAngleLimit
- The lower angle limitmaxFlySpeed
- The maximum speed for flightdecelerationRate
- The rate of decelerationhoverDecelerationRate
- The deceleration rate when hoveringaccelerationRate
- The rate of accelerationstrafeAccelerationRate
- The rate of acceleration when strafingstrafeRollConversion
- The conversion rate for strafing and rollingturnRate
- The turn ratepitchRate
- The pitch ratestaysHorizontalFlying
- If the flying is only horizontalgravityDropPerTick
- The amount per tick the pokemon drops naturally when flyingcontinuousForwardMotion
- If the pokemon's forward motion cannot be stopped once flyingcontinuousForwardMotionTicks
- How many ticks between occurances of forward motionflyingStaminaCharges
- The amount of times you can 'takeoff' or 'boost' into the airhoverTicks
- The amount of ticks you can hover for (Resets on stamina charge use)public MountedFlyingParameters()
public float getUpperAngleLimit()
public float getLowerAngleLimit()
public float getMaxFlySpeed()
public float getDecelerationRate()
public float getHoverDecelerationRate()
public float getAccelerationRate()
public float getStrafeAccelerationRate()
public float getStrafeRollConversion()
public float getTurnRate()
public float getPitchRate()
public boolean isStaysHorizontalFlying()
public float getGravityDropPerTick()
public boolean getContinuousForwardMotion()
public int getContinuousForwardMotionTicks()
public int getFlyingStaminaCharges()
public int getHoverTicks()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public com.mojang.serialization.Codec<? extends ControlledMovementLogic> codec()
codec
in interface ControlledMovementLogic
public void handleMovementLogic(PixelmonEntity pixelmon, net.minecraft.entity.player.PlayerEntity ridingPlayer)
handleMovementLogic
in interface ControlledMovementLogic
public void handleRiderJump(PixelmonEntity pixelmon, net.minecraft.entity.player.PlayerEntity ridingPlayer, int power)
handleRiderJump
in interface ControlledMovementLogic
public void calcMoveSpeed(AbstractMovesEntity entity)
calcMoveSpeed
in interface ControlledMovementLogic
public boolean getStaysHorizontalInRender(AbstractMovesEntity entity)
getStaysHorizontalInRender
in interface ControlledMovementLogic
public void calculateRoll(AbstractMovesEntity pixelmon, float strafe)
calculateRoll
in interface ControlledMovementLogic
public void handleMovement(java.util.List<EnumKeybinds> movements, AbstractMovesEntity pixelmon)
handleMovement
in interface ControlledMovementLogic
public void travelCustom(AbstractMovesEntity pixelmon, PixelmonMovementFlying pixelmonMovementFlying)
travelCustom
in interface ControlledMovementLogic
public void handleKeybindMovement(java.util.List<EnumMovement> movements, AbstractMovesEntity pixelmon)
handleKeybindMovement
in interface ControlledMovementLogic