Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- NULLABLE_BIT_FIELD_SIZE
- FIXED_BLOCK_SIZE
- VARIABLE_FIELD_COUNT
- VARIABLE_BLOCK_START
- MAX_SIZE
- type
- density
- gravity
- bounciness
- bounceCount
- bounceLimit
- sticksVertically
- computeYaw
- computePitch
- rotationMode
- moveOutOfSolidSpeed
- terminalVelocityAir
- densityAir
- terminalVelocityWater
- densityWater
- hitWaterImpulseLoss
- rotationForce
- speedRotationFactor
- swimmingDampingFactor
- allowRolling
- rollingFrictionFactor
- rollingSpeed
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getType(MemorySegment)
- getType(MemorySegment, int)
- getDensity(MemorySegment)
- getDensity(MemorySegment, int)
- getGravity(MemorySegment)
- getGravity(MemorySegment, int)
- getBounciness(MemorySegment)
- getBounciness(MemorySegment, int)
- getBounceCount(MemorySegment)
- getBounceCount(MemorySegment, int)
- getBounceLimit(MemorySegment)
- getBounceLimit(MemorySegment, int)
- getSticksVertically(MemorySegment)
- getSticksVertically(MemorySegment, int)
- getComputeYaw(MemorySegment)
- getComputeYaw(MemorySegment, int)
- getComputePitch(MemorySegment)
- getComputePitch(MemorySegment, int)
- getRotationMode(MemorySegment)
- getRotationMode(MemorySegment, int)
- getMoveOutOfSolidSpeed(MemorySegment)
- getMoveOutOfSolidSpeed(MemorySegment, int)
- getTerminalVelocityAir(MemorySegment)
- getTerminalVelocityAir(MemorySegment, int)
- getDensityAir(MemorySegment)
- getDensityAir(MemorySegment, int)
- getTerminalVelocityWater(MemorySegment)
- getTerminalVelocityWater(MemorySegment, int)
- getDensityWater(MemorySegment)
- getDensityWater(MemorySegment, int)
- getHitWaterImpulseLoss(MemorySegment)
- getHitWaterImpulseLoss(MemorySegment, int)
- getRotationForce(MemorySegment)
- getRotationForce(MemorySegment, int)
- getSpeedRotationFactor(MemorySegment)
- getSpeedRotationFactor(MemorySegment, int)
- getSwimmingDampingFactor(MemorySegment)
- getSwimmingDampingFactor(MemorySegment, int)
- getAllowRolling(MemorySegment)
- getAllowRolling(MemorySegment, int)
- getRollingFrictionFactor(MemorySegment)
- getRollingFrictionFactor(MemorySegment, int)
- getRollingSpeed(MemorySegment)
- getRollingSpeed(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class PhysicsConfig
java.lang.Object
com.hypixel.hytale.protocol.PhysicsConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanintdoubledoublebooleanbooleandoubledoubledoublestatic final intdoubledoublestatic final intdoublestatic final intdoublefloatdoublefloatbooleandoubledoubledoublestatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionPhysicsConfig(PhysicsConfig other) PhysicsConfig(PhysicsType type, double density, double gravity, double bounciness, int bounceCount, double bounceLimit, boolean sticksVertically, boolean computeYaw, boolean computePitch, RotationMode rotationMode, double moveOutOfSolidSpeed, double terminalVelocityAir, double densityAir, double terminalVelocityWater, double densityWater, double hitWaterImpulseLoss, double rotationForce, float speedRotationFactor, double swimmingDampingFactor, boolean allowRolling, double rollingFrictionFactor, float rollingSpeed) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic booleanstatic booleangetAllowRolling(MemorySegment mem, int offset) static intstatic intgetBounceCount(MemorySegment mem, int offset) static doublestatic doublegetBounceLimit(MemorySegment mem, int offset) static doublestatic doublegetBounciness(MemorySegment mem, int offset) static booleanstatic booleangetComputePitch(MemorySegment mem, int offset) static booleanstatic booleangetComputeYaw(MemorySegment mem, int offset) static doublegetDensity(MemorySegment mem) static doublegetDensity(MemorySegment mem, int offset) static doublestatic doublegetDensityAir(MemorySegment mem, int offset) static doublestatic doublegetDensityWater(MemorySegment mem, int offset) static doublegetGravity(MemorySegment mem) static doublegetGravity(MemorySegment mem, int offset) static doublestatic doublegetHitWaterImpulseLoss(MemorySegment mem, int offset) static doublestatic doublegetMoveOutOfSolidSpeed(MemorySegment mem, int offset) static doublestatic doublegetRollingFrictionFactor(MemorySegment mem, int offset) static floatstatic floatgetRollingSpeed(MemorySegment mem, int offset) static doublestatic doublegetRotationForce(MemorySegment mem, int offset) static RotationModestatic RotationModegetRotationMode(MemorySegment mem, int offset) static floatstatic floatgetSpeedRotationFactor(MemorySegment mem, int offset) static booleanstatic booleangetSticksVertically(MemorySegment mem, int offset) static doublestatic doublegetSwimmingDampingFactor(MemorySegment mem, int offset) static doublestatic doublegetTerminalVelocityAir(MemorySegment mem, int offset) static doublestatic doublegetTerminalVelocityWater(MemorySegment mem, int offset) static PhysicsTypegetType(MemorySegment mem) static PhysicsTypegetType(MemorySegment mem, int offset) inthashCode()static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static PhysicsConfigtoObject(MemorySegment mem) static PhysicsConfigtoObject(MemorySegment mem, int offset) static PhysicsConfigtoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one PhysicsConfig and reports the end of its encoding through the cursor.
-
Field Details
-
NULLABLE_BIT_FIELD_SIZE
public static final int NULLABLE_BIT_FIELD_SIZE- See Also:
-
FIXED_BLOCK_SIZE
public static final int FIXED_BLOCK_SIZE- See Also:
-
VARIABLE_FIELD_COUNT
public static final int VARIABLE_FIELD_COUNT- See Also:
-
VARIABLE_BLOCK_START
public static final int VARIABLE_BLOCK_START- See Also:
-
MAX_SIZE
public static final int MAX_SIZE- See Also:
-
type
-
density
public double density -
gravity
public double gravity -
bounciness
public double bounciness -
bounceCount
public int bounceCount -
bounceLimit
public double bounceLimit -
sticksVertically
public boolean sticksVertically -
computeYaw
public boolean computeYaw -
computePitch
public boolean computePitch -
rotationMode
-
moveOutOfSolidSpeed
public double moveOutOfSolidSpeed -
terminalVelocityAir
public double terminalVelocityAir -
densityAir
public double densityAir -
terminalVelocityWater
public double terminalVelocityWater -
densityWater
public double densityWater -
hitWaterImpulseLoss
public double hitWaterImpulseLoss -
rotationForce
public double rotationForce -
speedRotationFactor
public float speedRotationFactor -
swimmingDampingFactor
public double swimmingDampingFactor -
allowRolling
public boolean allowRolling -
rollingFrictionFactor
public double rollingFrictionFactor -
rollingSpeed
public float rollingSpeed
-
-
Constructor Details
-
PhysicsConfig
public PhysicsConfig() -
PhysicsConfig
public PhysicsConfig(@Nonnull PhysicsType type, double density, double gravity, double bounciness, int bounceCount, double bounceLimit, boolean sticksVertically, boolean computeYaw, boolean computePitch, @Nonnull RotationMode rotationMode, double moveOutOfSolidSpeed, double terminalVelocityAir, double densityAir, double terminalVelocityWater, double densityWater, double hitWaterImpulseLoss, double rotationForce, float speedRotationFactor, double swimmingDampingFactor, boolean allowRolling, double rollingFrictionFactor, float rollingSpeed) -
PhysicsConfig
-
-
Method Details
-
requireBounds
Checks that the fixed block fits. The per-field getters read without their own bound check, so call this once before reading fields out of an untrusted segment. -
getType
-
getType
-
getDensity
-
getDensity
-
getGravity
-
getGravity
-
getBounciness
-
getBounciness
-
getBounceCount
-
getBounceCount
-
getBounceLimit
-
getBounceLimit
-
getSticksVertically
-
getSticksVertically
-
getComputeYaw
-
getComputeYaw
-
getComputePitch
-
getComputePitch
-
getRotationMode
-
getRotationMode
-
getMoveOutOfSolidSpeed
-
getMoveOutOfSolidSpeed
-
getTerminalVelocityAir
-
getTerminalVelocityAir
-
getDensityAir
-
getDensityAir
-
getTerminalVelocityWater
-
getTerminalVelocityWater
-
getDensityWater
-
getDensityWater
-
getHitWaterImpulseLoss
-
getHitWaterImpulseLoss
-
getRotationForce
-
getRotationForce
-
getSpeedRotationFactor
-
getSpeedRotationFactor
-
getSwimmingDampingFactor
-
getSwimmingDampingFactor
-
getAllowRolling
-
getAllowRolling
-
getRollingFrictionFactor
-
getRollingFrictionFactor
-
getRollingSpeed
-
getRollingSpeed
-
toObject
-
toObject
-
toObject
Decodes one PhysicsConfig and reports the end of its encoding through the cursor. The variable block is decoded in field order against a running position, and each offset slot must name that position, so the fields decoded are the bytes walked. -
serialize
-
computeSize
public int computeSize() -
clone
-
equals
-
hashCode
-