Class StandardPhysicsConfig

java.lang.Object
com.hypixel.hytale.server.core.modules.projectile.config.StandardPhysicsConfig
All Implemented Interfaces:
NetworkSerializable<PhysicsConfig>, PhysicsConfig

public class StandardPhysicsConfig extends Object implements PhysicsConfig
  • Field Details

    • CODEC

      @Nonnull public static final BuilderCodec<StandardPhysicsConfig> CODEC
    • DEFAULT

      public static final StandardPhysicsConfig DEFAULT
    • HIT_WATER_IMPULSE_LOSS

      protected static final double HIT_WATER_IMPULSE_LOSS
      See Also:
    • ROTATION_FORCE

      protected static final double ROTATION_FORCE
      See Also:
    • SPEED_ROTATION_FACTOR

      protected static final float SPEED_ROTATION_FACTOR
      See Also:
    • SWIMMING_DAMPING_FACTOR

      protected static final double SWIMMING_DAMPING_FACTOR
      See Also:
    • density

      protected double density
    • gravity

      protected double gravity
    • bounciness

      protected double bounciness
    • bounceCount

      protected int bounceCount
    • bounceLimit

      protected double bounceLimit
    • sticksVertically

      protected boolean sticksVertically
    • computeYaw

      protected boolean computeYaw
    • computePitch

      protected boolean computePitch
    • rotationMode

      @Nonnull protected RotationMode rotationMode
    • allowRolling

      protected boolean allowRolling
    • rollingFrictionFactor

      protected double rollingFrictionFactor
    • rollingSpeed

      protected float rollingSpeed
    • moveOutOfSolidSpeed

      protected double moveOutOfSolidSpeed
    • terminalVelocityAir

      protected double terminalVelocityAir
    • densityAir

      protected double densityAir
    • terminalVelocityWater

      protected double terminalVelocityWater
    • densityWater

      protected double densityWater
    • hitWaterImpulseLoss

      protected double hitWaterImpulseLoss
    • rotationForce

      protected double rotationForce
    • speedRotationFactor

      protected float speedRotationFactor
    • swimmingDampingFactor

      protected double swimmingDampingFactor
  • Constructor Details

    • StandardPhysicsConfig

      public StandardPhysicsConfig()
  • Method Details

    • getGravity

      public double getGravity()
      Specified by:
      getGravity in interface PhysicsConfig
    • apply

      public void apply(@Nonnull Holder<EntityStore> holder, @Nullable Ref<EntityStore> creatorRef, @Nonnull Vector3d velocity, @Nonnull ComponentAccessor<EntityStore> componentAccessor, boolean predicted)
      Specified by:
      apply in interface PhysicsConfig
    • toPacket

      @Nonnull public PhysicsConfig toPacket()
      Specified by:
      toPacket in interface NetworkSerializable<PhysicsConfig>
    • getBounciness

      public double getBounciness()
    • getBounceCount

      public int getBounceCount()
    • getBounceLimit

      public double getBounceLimit()
    • isSticksVertically

      public boolean isSticksVertically()
    • isAllowRolling

      public boolean isAllowRolling()
    • getRollingFrictionFactor

      public double getRollingFrictionFactor()
    • getSwimmingDampingFactor

      public double getSwimmingDampingFactor()
    • getHitWaterImpulseLoss

      public double getHitWaterImpulseLoss()