Class SimplePhysicsProvider
java.lang.Object
com.hypixel.hytale.server.core.modules.physics.SimplePhysicsProvider
- All Implemented Interfaces:
IBlockCollisionConsumer
Deprecated.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDeprecated.static enumDeprecated.Nested classes/interfaces inherited from interface com.hypixel.hytale.server.core.modules.collision.IBlockCollisionConsumer
IBlockCollisionConsumer.Result -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BlockCollisionProviderDeprecated.protected BiConsumer<Vector3d, ComponentAccessor<EntityStore>> Deprecated.protected booleanDeprecated.protected doubleDeprecated.protected BoundingBoxDeprecated, for removal: This API element is subject to removal in a future version.protected doubleDeprecated.protected booleanDeprecated.protected booleanDeprecated.protected final Vector3dDeprecated.protected final Vector3dDeprecated.protected UUIDDeprecated.protected static final doubleDeprecated.protected doubleDeprecated.protected doubleDeprecated.protected doubleDeprecated.protected doubleDeprecated.protected doubleDeprecated.protected doubleDeprecated.protected final EntityCollisionProviderDeprecated.protected final BlockTrackerDeprecated.protected ForceProviderEntityDeprecated.protected ForceProvider[]Deprecated.protected final ForceProviderStandardStateDeprecated.protected doubleDeprecated.protected static final doubleDeprecated.protected doubleDeprecated.protected QuadConsumer<Ref<EntityStore>, Vector3d, Ref<EntityStore>, ComponentAccessor<EntityStore>> Deprecated.protected booleanDeprecated.protected doubleDeprecated.protected static final com.hypixel.hytale.logger.HytaleLoggerDeprecated.protected static final doubleDeprecated.protected static final doubleDeprecated.protected booleanDeprecated.protected final Vector3dDeprecated.protected doubleDeprecated.protected final Vector3dDeprecated.protected booleanDeprecated.protected final Vector3dDeprecated.protected booleanDeprecated.protected final RestingSupportDeprecated.protected static final doubleDeprecated.protected doubleDeprecated.protected SimplePhysicsProvider.ROTATION_MODEDeprecated.protected static final floatDeprecated.protected floatDeprecated.protected SimplePhysicsProvider.STATEDeprecated.protected final PhysicsBodyStateDeprecated.protected final PhysicsBodyStateDeprecated.protected final PhysicsBodyStateUpdaterDeprecated.protected booleanDeprecated.protected doubleDeprecated.protected static final doubleDeprecated.protected doubleDeprecated.protected final Vector3dDeprecated.protected doubleDeprecated.protected doubleDeprecated.protected final BlockTrackerDeprecated.protected final Vector3dDeprecated.protected intDeprecated.protected static final intDeprecated.protected WorldDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.SimplePhysicsProvider(BiConsumer<Vector3d, ComponentAccessor<EntityStore>> bounceConsumer, QuadConsumer<Ref<EntityStore>, Vector3d, Ref<EntityStore>, ComponentAccessor<EntityStore>> impactConsumer) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddVelocity(float x, float y, float z) Deprecated.static voidcomputeReflectedVector(Vector3d vec, Vector3d normal, Vector3d result) Deprecated.protected voidfinishTick(TransformComponent position, Velocity velocity) Deprecated.protected doublegetDragCoefficient(double density) Deprecated.Deprecated.voidinitialize(Projectile projectile, BoundingBox boundingBox) Deprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.onCollision(int blockX, int blockY, int blockZ, Vector3d direction, BlockContactData contactData, BlockData blockData, Box collider) Deprecated.voidonCollisionDamage(int blockX, int blockY, int blockZ, Vector3d direction, BlockContactData collisionData, BlockData blockData) Deprecated.voidDeprecated.Deprecated.probeCollisionDamage(int blockX, int blockY, int blockZ, Vector3d direction, BlockContactData collisionData, BlockData blockData) Deprecated.protected voidrecomputeDragFactors(BoundingBox boundingBoxComponent) Deprecated.protected voidrotateBody(double dt, Vector3f bodyRotation) Deprecated.voidsetBounciness(double bounciness) Deprecated.voidsetComputePitch(boolean computePitch) Deprecated.voidsetComputeYaw(boolean computeYaw) Deprecated.voidsetCreatorId(UUID creatorUuid) Deprecated.voidsetGravity(double gravity, BoundingBox boundingBox) Deprecated.voidsetImpacted(boolean impacted) Deprecated.setImpactSlowdown(double impactSlowdown) Deprecated.voidsetMoveOutOfSolid(boolean moveOutOfSolid) Deprecated.voidsetMoveOutOfSolid(double speed) Deprecated.voidsetProvideCharacterCollisions(boolean provideCharacterCollisions) Deprecated.voidsetResting(boolean resting) Deprecated.voidsetSticksVertically(boolean sticksVertically) Deprecated.voidsetTerminalVelocities(double terminalVelocity1, double density1, double terminalVelocity2, double density2, BoundingBox boundingBox) Deprecated.voidsetTerminalVelocities(double terminalVelocityAir, double terminalVelocityWater, BoundingBox boundingBox) Deprecated.voidsetVelocity(Vector3d velocity) Deprecated.tick(double dt, Velocity entityVelocity, World entityWorld, TransformComponent entityTransform, Ref<EntityStore> selfRef, ComponentAccessor<EntityStore> componentAccessor) Deprecated.
-
Field Details
-
HIT_WATER_IMPULSE_LOSS
protected static final double HIT_WATER_IMPULSE_LOSSDeprecated.- See Also:
-
ROTATION_FORCE
protected static final double ROTATION_FORCEDeprecated.- See Also:
-
SPEED_ROTATION_FACTOR
protected static final float SPEED_ROTATION_FACTORDeprecated.- See Also:
-
SWIMMING_DAMPING_FACTOR
protected static final double SWIMMING_DAMPING_FACTORDeprecated.- See Also:
-
DEFAULT_MOVE_OUT_OF_SOLID_SPEED
protected static final double DEFAULT_MOVE_OUT_OF_SOLID_SPEEDDeprecated.- See Also:
-
WATER_DETECTION_EXTREMA_COUNT
protected static final int WATER_DETECTION_EXTREMA_COUNTDeprecated.- See Also:
-
LOGGER
protected static final com.hypixel.hytale.logger.HytaleLogger LOGGERDeprecated. -
blockCollisionProvider
Deprecated. -
entityCollisionProvider
Deprecated. -
triggerTracker
Deprecated. -
restingSupport
Deprecated. -
world
Deprecated. -
velocity
Deprecated. -
position
Deprecated. -
movement
Deprecated. -
bounced
protected boolean bouncedDeprecated. -
onGround
protected boolean onGroundDeprecated. -
provideCharacterCollisions
protected boolean provideCharacterCollisionsDeprecated. -
gravity
protected double gravityDeprecated. -
bounciness
protected double bouncinessDeprecated. -
sticksVertically
protected boolean sticksVerticallyDeprecated. -
computeYaw
protected boolean computeYawDeprecated. -
computePitch
protected boolean computePitchDeprecated. -
rotationMode
Deprecated. -
creatorUuid
Deprecated. -
minBounceEpsilon
protected static final double minBounceEpsilonDeprecated.- See Also:
-
minBounceEpsilonSquared
protected static final double minBounceEpsilonSquaredDeprecated.- See Also:
-
tempVector
Deprecated. -
bounceConsumer
Deprecated. -
impactConsumer
protected QuadConsumer<Ref<EntityStore>,Vector3d, impactConsumerRef<EntityStore>, ComponentAccessor<EntityStore>> Deprecated. -
moveOutOfSolidSpeed
protected double moveOutOfSolidSpeedDeprecated. -
movedInsideSolid
protected boolean movedInsideSolidDeprecated. -
moveOutOfSolidVelocity
Deprecated. -
contactPosition
Deprecated. -
contactNormal
Deprecated. -
collisionStart
protected double collisionStartDeprecated. -
stateUpdater
Deprecated. -
stateBefore
Deprecated. -
stateAfter
Deprecated. -
displacedMass
protected double displacedMassDeprecated. -
subSurfaceVolume
protected double subSurfaceVolumeDeprecated. -
enterFluid
protected double enterFluidDeprecated. -
leaveFluid
protected double leaveFluidDeprecated. -
inFluid
protected boolean inFluidDeprecated. -
velocityExtremaCount
protected int velocityExtremaCountDeprecated. -
state
Deprecated. -
forceProviderEntity
Deprecated. -
forceProviders
Deprecated. -
forceProviderStandardState
Deprecated. -
terminalVelocity1
protected double terminalVelocity1Deprecated. -
density1
protected double density1Deprecated. -
terminalVelocity2
protected double terminalVelocity2Deprecated. -
density2
protected double density2Deprecated. -
dragMultiplier
protected double dragMultiplierDeprecated. -
dragOffset
protected double dragOffsetDeprecated. -
fluidTracker
Deprecated. -
hitWaterImpulseLoss
protected double hitWaterImpulseLossDeprecated. -
rotationForce
protected double rotationForceDeprecated. -
speedRotationFactor
protected float speedRotationFactorDeprecated. -
swimmingDampingFactor
protected double swimmingDampingFactorDeprecated. -
boundingBox
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
SimplePhysicsProvider
public SimplePhysicsProvider()Deprecated. -
SimplePhysicsProvider
public SimplePhysicsProvider(@Nonnull BiConsumer<Vector3d, ComponentAccessor<EntityStore>> bounceConsumer, @Nonnull QuadConsumer<Ref<EntityStore>, Vector3d, Ref<EntityStore>, ComponentAccessor<EntityStore>> impactConsumer) Deprecated.
-
-
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:
onCollisionin interfaceIBlockCollisionConsumer
-
probeCollisionDamage
@Nonnull public IBlockCollisionConsumer.Result probeCollisionDamage(int blockX, int blockY, int blockZ, Vector3d direction, BlockContactData collisionData, BlockData blockData) Deprecated.- Specified by:
probeCollisionDamagein interfaceIBlockCollisionConsumer
-
onCollisionDamage
public void onCollisionDamage(int blockX, int blockY, int blockZ, Vector3d direction, BlockContactData collisionData, BlockData blockData) Deprecated.- Specified by:
onCollisionDamagein interfaceIBlockCollisionConsumer
-
onCollisionSliceFinished
Deprecated.- Specified by:
onCollisionSliceFinishedin interfaceIBlockCollisionConsumer
-
onCollisionFinished
public void onCollisionFinished()Deprecated.- Specified by:
onCollisionFinishedin interfaceIBlockCollisionConsumer
-
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
Deprecated. -
rotateBody
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
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
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
Deprecated. -
initialize
Deprecated. -
getVelocity
Deprecated. -
addVelocity
public void addVelocity(float x, float y, float z) Deprecated. -
setVelocity
Deprecated. -
setMoveOutOfSolid
public void setMoveOutOfSolid(boolean moveOutOfSolid) Deprecated. -
setMoveOutOfSolid
public void setMoveOutOfSolid(double speed) Deprecated. -
getDragCoefficient
protected double getDragCoefficient(double density) Deprecated. -
recomputeDragFactors
Deprecated.
-