LeviLamina
Loading...
Searching...
No Matches
BlockDestructibleByExplosionDescription.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/block/components/BlockComponentDescription.h"
7
8// auto generated forward declare list
9// clang-format off
11// clang-format on
12
13struct BlockDestructibleByExplosionDescription : public ::BlockComponentDescription {
14public:
15 // member variables
16 // NOLINTBEGIN
17 ::ll::TypedStorage<4, 4, float> mExplosionResistance;
18 // NOLINTEND
19
20public:
21 explicit BlockDestructibleByExplosionDescription(float explosionResistance) {
22 mExplosionResistance = explosionResistance * 5.0f;
23 mInitializedFromCode = true;
24 }
25
26public:
27 // virtual functions
28 // NOLINTBEGIN
29 virtual ::std::string const& getName() const /*override*/;
30
31 virtual void initializeComponent(::BlockComponentStorage& blockComponentStorage) const /*override*/;
32
33 virtual void initializeComponentFromCode(::BlockComponentStorage& blockComponentStorage) const /*override*/;
34 // NOLINTEND
35
36public:
37 // static variables
38 // NOLINTBEGIN
39 MCAPI static ::std::string const& NameID();
40 // NOLINTEND
41
42public:
43 // virtual function thunks
44 // NOLINTBEGIN
45 MCAPI ::std::string const& $getName() const;
46
47 MCAPI void $initializeComponent(::BlockComponentStorage& blockComponentStorage) const;
48
49 MCFOLD void $initializeComponentFromCode(::BlockComponentStorage& blockComponentStorage) const;
50
51
52 // NOLINTEND
53
54public:
55 // vftables
56 // NOLINTBEGIN
57 MCNAPI static void** $vftable();
58 // NOLINTEND
59};
Definition BlockComponentStorage.h:67
Definition BlockComponentDescription.h:20