Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
BuoyancyComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/entity/components_json_legacy/BuoyancyMovementType.h"
7#include "mc/world/level/block/BlockDescriptor.h"
8
9// auto generated forward declare list
10// clang-format off
12class SemVersion;
14namespace Json { class Value; }
15// clang-format on
16
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<4, 4, float> mBaseBuoyancy;
22 ::ll::TypedStorage<4, 4, float> mDragDownOnRemoval;
23 ::ll::TypedStorage<4, 4, float> mBigWaveProbability;
24 ::ll::TypedStorage<4, 4, float> mBigWaveSpeedMultiplier;
25 ::ll::TypedStorage<1, 1, ::BuoyancyMovementType> mMovementType;
26 ::ll::TypedStorage<1, 1, bool> mApplyGravity;
27 ::ll::TypedStorage<1, 1, bool> mCanAutoStepFromLiquid;
28 ::ll::TypedStorage<8, 8, double> mTimer;
29 ::ll::TypedStorage<8, 24, ::std::vector<::BlockDescriptor>> mLiquidBlocks;
30 // NOLINTEND
31
32public:
33 // member functions
34 // NOLINTBEGIN
35 MCNAPI ::Json::Value _serialize() const;
36
37 MCNAPI bool canFloat(::StateVectorComponent const& stateVectorComponent, ::IConstBlockSource const& region) const;
38
39 MCNAPI void loadData(::std::string const& data, ::SemVersion const& engineVersion);
40
41 MCNAPI bool
42 needToResurface(::StateVectorComponent const& stateVectorComponent, ::IConstBlockSource const& region) const;
43 // NOLINTEND
44};
Definition BuoyancyComponent.h:17
MCAPI::Json::Value _serialize() const
MCAPI void loadData(::std::string const &data, ::SemVersion const &engineVersion)
MCAPI bool needToResurface(::StateVectorComponent const &stateVectorComponent, ::IConstBlockSource const &region) const
MCAPI bool canFloat(::StateVectorComponent const &stateVectorComponent, ::IConstBlockSource const &region) const
Definition IConstBlockSource.h:25
Definition Value.h:16
Definition SemVersion.h:15
Definition StateVectorComponent.h:8