16class BuoyancyComponent {
20 ::ll::TypedStorage<4, 4, float> mBaseBuoyancy;
21 ::ll::TypedStorage<4, 4, float> mDragDownOnRemoval;
22 ::ll::TypedStorage<4, 4, float> mBigWaveProbability;
23 ::ll::TypedStorage<4, 4, float> mBigWaveSpeedMultiplier;
24 ::ll::TypedStorage<1, 1, ::BuoyancyMovementType> mMovementType;
25 ::ll::TypedStorage<1, 1, bool> mApplyGravity;
26 ::ll::TypedStorage<1, 1, bool> mCanAutoStepFromLiquid;
27 ::ll::TypedStorage<8, 8, double> mTimer;
28 ::ll::TypedStorage<8, 24, ::std::vector<::BlockDescriptor>> mLiquidBlocks;
34 MCAPI BuoyancyComponent();
36 MCFOLD
bool canAutoStepFromLiquid()
const;
40 MCFOLD
float getBaseBuoyancy()
const;
42 MCFOLD
float getBigWaveProbability()
const;
44 MCFOLD
float getBigWaveSpeedMultiplier()
const;
46 MCFOLD ::BuoyancyMovementType getMovementType()
const;
48 MCAPI
double getTimer()
const;
50 MCAPI
void increaseTimer(
float toAdd);
52 MCAPI
void loadData(::std::string
const& data,
::SemVersion const& engineVersion);
57 MCFOLD
bool shouldApplyGravity()
const;
60 MCAPI ~BuoyancyComponent();