LeviLamina
Loading...
Searching...
No Matches
ElementBlock.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/block/BlockLegacy.h"
7#include "mc/world/level/block/ElementType.h"
8
9// auto generated forward declare list
10// clang-format off
11class BaseGameVersion;
12class Block;
13class BlockPos;
14class BlockSource;
15class ItemInstance;
17struct ElementInfo;
18namespace mce { class Color; }
19// clang-format on
20
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<1, 1, ::ElementType> mType;
26 // NOLINTEND
27
28public:
29 // virtual functions
30 // NOLINTBEGIN
31 // vIndex: 147
32 virtual ::mce::Color getMapColor(::BlockSource&, ::BlockPos const&, ::Block const& block) const /*override*/;
33
34 // vIndex: 112
35 virtual ::std::string buildDescriptionId(::Block const& block) const /*override*/;
36
37 // vIndex: 56
38 virtual bool canBeUsedInCommands(::BaseGameVersion const& requiredBaseGameVersion) const /*override*/;
39
40 // vIndex: 127
41 virtual ::Block const* tryLegacyUpgrade(ushort extraData) const /*override*/;
42
43 // vIndex: 0
44 virtual ~ElementBlock() /*override*/ = default;
45 // NOLINTEND
46
47public:
48 // static functions
49 // NOLINTBEGIN
50 MCAPI static ::ElementInfo getElementInfo(::ElementType e);
51
52 MCAPI static ::RecipeIngredient getIngredientForElement(::ElementType e, int stackCount);
53
54 MCAPI static ::ItemInstance getItemForElement(::ElementType e, int stackCount);
55
56 MCAPI static void initElements();
57 // NOLINTEND
58
59public:
60 // static variables
61 // NOLINTBEGIN
62 MCAPI static ::std::vector<::BlockLegacy const*>& mElements();
63 // NOLINTEND
64
65public:
66 // destructor thunk
67 // NOLINTBEGIN
68
69 // NOLINTEND
70
71public:
72 // virtual function thunks
73 // NOLINTBEGIN
74 MCAPI ::mce::Color $getMapColor(::BlockSource&, ::BlockPos const&, ::Block const& block) const;
75
76 MCAPI ::std::string $buildDescriptionId(::Block const& block) const;
77
78 MCFOLD bool $canBeUsedInCommands(::BaseGameVersion const& requiredBaseGameVersion) const;
79
80 MCAPI ::Block const* $tryLegacyUpgrade(ushort extraData) const;
81 // NOLINTEND
82
83public:
84 // vftables
85 // NOLINTBEGIN
86 MCAPI static void** $vftable();
87 // NOLINTEND
88};
Definition BaseGameVersion.h:13
Definition BlockLegacy.h:88
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:36
Definition ElementBlock.h:21
Definition ItemInstance.h:16
Definition RecipeIngredient.h:17
Definition ElementInfo.h:5