Class SimplePhysicsProvider

java.lang.Object
com.hypixel.hytale.server.core.modules.physics.SimplePhysicsProvider
All Implemented Interfaces:
IBlockCollisionConsumer

@Deprecated public class SimplePhysicsProvider extends Object implements IBlockCollisionConsumer
Deprecated.
  • Field Details

    • HIT_WATER_IMPULSE_LOSS

      protected static final double HIT_WATER_IMPULSE_LOSS
      Deprecated.
      See Also:
    • ROTATION_FORCE

      protected static final double ROTATION_FORCE
      Deprecated.
      See Also:
    • SPEED_ROTATION_FACTOR

      protected static final float SPEED_ROTATION_FACTOR
      Deprecated.
      See Also:
    • SWIMMING_DAMPING_FACTOR

      protected static final double SWIMMING_DAMPING_FACTOR
      Deprecated.
      See Also:
    • DEFAULT_MOVE_OUT_OF_SOLID_SPEED

      protected static final double DEFAULT_MOVE_OUT_OF_SOLID_SPEED
      Deprecated.
      See Also:
    • WATER_DETECTION_EXTREMA_COUNT

      protected static final int WATER_DETECTION_EXTREMA_COUNT
      Deprecated.
      See Also:
    • LOGGER

      protected static final com.hypixel.hytale.logger.HytaleLogger LOGGER
      Deprecated.
    • blockCollisionProvider

      @Nonnull protected final BlockCollisionProvider blockCollisionProvider
      Deprecated.
    • entityCollisionProvider

      @Nonnull protected final EntityCollisionProvider entityCollisionProvider
      Deprecated.
    • triggerTracker

      @Nonnull protected final BlockTracker triggerTracker
      Deprecated.
    • restingSupport

      @Nonnull protected final RestingSupport restingSupport
      Deprecated.
    • world

      @Nullable protected World world
      Deprecated.
    • velocity

      @Nonnull protected final Vector3d velocity
      Deprecated.
    • position

      @Nonnull protected final Vector3d position
      Deprecated.
    • movement

      @Nonnull protected final Vector3d movement
      Deprecated.
    • bounced

      protected boolean bounced
      Deprecated.
    • onGround

      protected boolean onGround
      Deprecated.
    • provideCharacterCollisions

      protected boolean provideCharacterCollisions
      Deprecated.
    • gravity

      protected double gravity
      Deprecated.
    • bounciness

      protected double bounciness
      Deprecated.
    • sticksVertically

      protected boolean sticksVertically
      Deprecated.
    • computeYaw

      protected boolean computeYaw
      Deprecated.
    • computePitch

      protected boolean computePitch
      Deprecated.
    • rotationMode

      protected SimplePhysicsProvider.ROTATION_MODE rotationMode
      Deprecated.
    • creatorUuid

      protected UUID creatorUuid
      Deprecated.
    • minBounceEpsilon

      protected static final double minBounceEpsilon
      Deprecated.
      See Also:
    • minBounceEpsilonSquared

      protected static final double minBounceEpsilonSquared
      Deprecated.
      See Also:
    • tempVector

      protected final Vector3d tempVector
      Deprecated.
    • bounceConsumer

      protected BiConsumer<Vector3d,ComponentAccessor<EntityStore>> bounceConsumer
      Deprecated.
    • impactConsumer

      Deprecated.
    • moveOutOfSolidSpeed

      protected double moveOutOfSolidSpeed
      Deprecated.
    • movedInsideSolid

      protected boolean movedInsideSolid
      Deprecated.
    • moveOutOfSolidVelocity

      protected final Vector3d moveOutOfSolidVelocity
      Deprecated.
    • contactPosition

      protected final Vector3d contactPosition
      Deprecated.
    • contactNormal

      protected final Vector3d contactNormal
      Deprecated.
    • collisionStart

      protected double collisionStart
      Deprecated.
    • stateUpdater

      protected final PhysicsBodyStateUpdater stateUpdater
      Deprecated.
    • stateBefore

      protected final PhysicsBodyState stateBefore
      Deprecated.
    • stateAfter

      protected final PhysicsBodyState stateAfter
      Deprecated.
    • displacedMass

      protected double displacedMass
      Deprecated.
    • subSurfaceVolume

      protected double subSurfaceVolume
      Deprecated.
    • enterFluid

      protected double enterFluid
      Deprecated.
    • leaveFluid

      protected double leaveFluid
      Deprecated.
    • inFluid

      protected boolean inFluid
      Deprecated.
    • velocityExtremaCount

      protected int velocityExtremaCount
      Deprecated.
    • state

      @Nonnull protected SimplePhysicsProvider.STATE state
      Deprecated.
    • forceProviderEntity

      protected ForceProviderEntity forceProviderEntity
      Deprecated.
    • forceProviders

      protected ForceProvider[] forceProviders
      Deprecated.
    • forceProviderStandardState

      protected final ForceProviderStandardState forceProviderStandardState
      Deprecated.
    • terminalVelocity1

      protected double terminalVelocity1
      Deprecated.
    • density1

      protected double density1
      Deprecated.
    • terminalVelocity2

      protected double terminalVelocity2
      Deprecated.
    • density2

      protected double density2
      Deprecated.
    • dragMultiplier

      protected double dragMultiplier
      Deprecated.
    • dragOffset

      protected double dragOffset
      Deprecated.
    • fluidTracker

      protected final BlockTracker fluidTracker
      Deprecated.
    • hitWaterImpulseLoss

      protected double hitWaterImpulseLoss
      Deprecated.
    • rotationForce

      protected double rotationForce
      Deprecated.
    • speedRotationFactor

      protected float speedRotationFactor
      Deprecated.
    • swimmingDampingFactor

      protected double swimmingDampingFactor
      Deprecated.
    • boundingBox

      @Deprecated(forRemoval=true) protected BoundingBox boundingBox
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

  • Method Details

    • setImpacted

      public void setImpacted(boolean impacted)
      Deprecated.
    • isImpacted

      public boolean isImpacted()
      Deprecated.
    • setResting

      public void setResting(boolean resting)
      Deprecated.
    • isResting

      public boolean isResting()
      Deprecated.
    • onCollision

      @Nonnull public IBlockCollisionConsumer.Result onCollision(int blockX, int blockY, int blockZ, @Nonnull Vector3d direction, @Nonnull BlockContactData contactData, @Nonnull BlockData blockData, @Nonnull Box collider)
      Deprecated.
      Specified by:
      onCollision in interface IBlockCollisionConsumer
    • probeCollisionDamage

      @Nonnull public IBlockCollisionConsumer.Result probeCollisionDamage(int blockX, int blockY, int blockZ, Vector3d direction, BlockContactData collisionData, BlockData blockData)
      Deprecated.
      Specified by:
      probeCollisionDamage in interface IBlockCollisionConsumer
    • onCollisionDamage

      public void onCollisionDamage(int blockX, int blockY, int blockZ, Vector3d direction, BlockContactData collisionData, BlockData blockData)
      Deprecated.
      Specified by:
      onCollisionDamage in interface IBlockCollisionConsumer
    • onCollisionSliceFinished

      @Nonnull public IBlockCollisionConsumer.Result onCollisionSliceFinished()
      Deprecated.
      Specified by:
      onCollisionSliceFinished in interface IBlockCollisionConsumer
    • onCollisionFinished

      public void onCollisionFinished()
      Deprecated.
      Specified by:
      onCollisionFinished in interface IBlockCollisionConsumer
    • tick

      @Nullable public Entity tick(double dt, @Nonnull Velocity entityVelocity, @Nonnull World entityWorld, @Nonnull TransformComponent entityTransform, Ref<EntityStore> selfRef, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
      Deprecated.
    • finishTick

      protected void finishTick(@Nonnull TransformComponent position, @Nonnull Velocity velocity)
      Deprecated.
    • rotateBody

      protected void rotateBody(double dt, @Nonnull Vector3f bodyRotation)
      Deprecated.
    • isOnGround

      public boolean isOnGround()
      Deprecated.
    • isSwimming

      public boolean isSwimming()
      Deprecated.
    • computeReflectedVector

      public static void computeReflectedVector(@Nonnull Vector3d vec, @Nonnull Vector3d normal, @Nonnull Vector3d result)
      Deprecated.
    • isProvidingCharacterCollisions

      public boolean isProvidingCharacterCollisions()
      Deprecated.
    • setProvideCharacterCollisions

      public void setProvideCharacterCollisions(boolean provideCharacterCollisions)
      Deprecated.
    • setGravity

      public void setGravity(double gravity, @Nonnull BoundingBox boundingBox)
      Deprecated.
    • setBounciness

      public void setBounciness(double bounciness)
      Deprecated.
    • setTerminalVelocities

      public void setTerminalVelocities(double terminalVelocityAir, double terminalVelocityWater, @Nonnull BoundingBox boundingBox)
      Deprecated.
    • setTerminalVelocities

      public void setTerminalVelocities(double terminalVelocity1, double density1, double terminalVelocity2, double density2, @Nonnull BoundingBox boundingBox)
      Deprecated.
    • setImpactSlowdown

      @Nonnull @Deprecated public SimplePhysicsProvider setImpactSlowdown(double impactSlowdown)
      Deprecated.
    • setSticksVertically

      public void setSticksVertically(boolean sticksVertically)
      Deprecated.
    • isComputeYaw

      public boolean isComputeYaw()
      Deprecated.
    • setComputeYaw

      public void setComputeYaw(boolean computeYaw)
      Deprecated.
    • isComputePitch

      public boolean isComputePitch()
      Deprecated.
    • setComputePitch

      public void setComputePitch(boolean computePitch)
      Deprecated.
    • setCreatorId

      public void setCreatorId(UUID creatorUuid)
      Deprecated.
    • initialize

      public void initialize(@Nullable Projectile projectile, @Nonnull BoundingBox boundingBox)
      Deprecated.
    • getVelocity

      @Nonnull public Vector3d getVelocity()
      Deprecated.
    • addVelocity

      public void addVelocity(float x, float y, float z)
      Deprecated.
    • setVelocity

      public void setVelocity(@Nonnull Vector3d velocity)
      Deprecated.
    • setMoveOutOfSolid

      public void setMoveOutOfSolid(boolean moveOutOfSolid)
      Deprecated.
    • setMoveOutOfSolid

      public void setMoveOutOfSolid(double speed)
      Deprecated.
    • getDragCoefficient

      protected double getDragCoefficient(double density)
      Deprecated.
    • recomputeDragFactors

      protected void recomputeDragFactors(@Nonnull BoundingBox boundingBoxComponent)
      Deprecated.