Class StandardPhysicsConfig
java.lang.Object
com.hypixel.hytale.server.core.modules.projectile.config.StandardPhysicsConfig
- All Implemented Interfaces:
NetworkSerializable<PhysicsConfig>,PhysicsConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected intprotected doubleprotected doublestatic final BuilderCodec<StandardPhysicsConfig> protected booleanprotected booleanstatic final StandardPhysicsConfigprotected doubleprotected doubleprotected doubleprotected doubleprotected static final doubleprotected doubleprotected doubleprotected doubleprotected floatprotected static final doubleprotected doubleprotected RotationModeprotected static final floatprotected floatprotected booleanprotected static final doubleprotected doubleprotected doubleprotected double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(Holder<EntityStore> holder, Ref<EntityStore> creatorRef, Vector3d velocity, ComponentAccessor<EntityStore> componentAccessor, boolean predicted) intdoubledoubledoubledoubledoubledoublebooleanbooleantoPacket()
-
Field Details
-
CODEC
-
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
-
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:
getGravityin interfacePhysicsConfig
-
apply
public void apply(@Nonnull Holder<EntityStore> holder, @Nullable Ref<EntityStore> creatorRef, @Nonnull Vector3d velocity, @Nonnull ComponentAccessor<EntityStore> componentAccessor, boolean predicted) - Specified by:
applyin interfacePhysicsConfig
-
toPacket
- Specified by:
toPacketin interfaceNetworkSerializable<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()
-