LeviLamina
Loading...
Searching...
No Matches
BlockDestructibleByMiningDescription.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#include "mc/world/level/block/components/ItemSpecificSpeed.h"
8
9// auto generated forward declare list
10// clang-format off
12class CompoundTag;
13namespace cereal { struct ReflectionCtx; }
14// clang-format on
15
17public:
18 // member variables
19 // NOLINTBEGIN
20 ::ll::TypedStorage<4, 4, float> mSecondsToDestroy;
21 ::ll::TypedStorage<8, 24, ::std::vector<::ItemSpecificSpeed>> mItemSpecificSpeeds;
22 // NOLINTEND
23
24public:
26 // inlined body zeroes it out to.
27 explicit BlockDestructibleByMiningDescription(float destroyTime) {
28 mSecondsToDestroy = destroyTime;
29 mInitializedFromCode = true;
30 }
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 virtual ::std::string const& getName() const /*override*/;
36
37 virtual void initializeComponent(::BlockComponentStorage& blockComponentSortage) const /*override*/;
38
39 virtual void initializeComponentFromCode(::BlockComponentStorage& blockComponentStorage) const /*override*/;
40
41 virtual bool isNetworkComponent() const /*override*/;
42
43 virtual ::std::unique_ptr<::CompoundTag> buildNetworkTag(::cereal::ReflectionCtx const& ctx) const /*override*/;
44
45 virtual void initializeFromNetwork(::CompoundTag const& tag, ::cereal::ReflectionCtx const& ctx) /*override*/;
46
47 virtual ~BlockDestructibleByMiningDescription() /*override*/;
48 // NOLINTEND
49
50public:
51 // static variables
52 // NOLINTBEGIN
53 MCAPI static ::std::string const& NameID();
54 // NOLINTEND
55
56public:
57 // destructor thunk
58 // NOLINTBEGIN
59 MCAPI void $dtor();
60 // NOLINTEND
61
62public:
63 // virtual function thunks
64 // NOLINTBEGIN
65 MCAPI ::std::string const& $getName() const;
66
67 MCAPI void $initializeComponent(::BlockComponentStorage& blockComponentSortage) const;
68
69 MCFOLD void $initializeComponentFromCode(::BlockComponentStorage& blockComponentStorage) const;
70
71 MCFOLD bool $isNetworkComponent() const;
72
73 MCAPI ::std::unique_ptr<::CompoundTag> $buildNetworkTag(::cereal::ReflectionCtx const& ctx) const;
74
75 MCAPI void $initializeFromNetwork(::CompoundTag const& tag, ::cereal::ReflectionCtx const& ctx);
76
77
78 // NOLINTEND
79
80public:
81 // vftables
82 // NOLINTBEGIN
83 MCNAPI static void** $vftable();
84 // NOLINTEND
85};
Definition BlockComponentStorage.h:67
Definition CompoundTag.h:18
STL namespace.
Definition BlockComponentDescription.h:20
Definition BlockDestructibleByMiningDescription.h:16
static MCAPI void ** $vftable()
BlockDestructibleByMiningDescription(float destroyTime)
mItemSpecificSpeeds is left to its default (empty) construction, which is what the game's
Definition BlockDestructibleByMiningDescription.h:27
Definition ReflectionCtx.h:11
Definition ctx.h:5