File BlockComponentStorage.hpp

Typedefs

using typeid_t = uint16_t
class BlockComponentStorage

Subclassed by Block, BlockLegacy

Public Functions

virtual ~BlockComponentStorage() = default
inline bool addingComponentsIsAllowed()
inline void finalizeComponents()
inline void allowComponentReplacement()
inline void allowTryGetComponentBeforeFinalization()

Public Members

std::vector<std::pair<Bedrock::typeid_t, std::unique_ptr<BlockComponentBase>>> mComponents
bool mAllowAddingComponents
bool mAllowComponentReplacement
bool mAllowTryGetComponentBeforeFinalization
std::byte padding35[5]
namespace Bedrock

Typedefs

using typeid_t = uint16_t