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: 144
32 virtual ::mce::Color getMapColor(::BlockSource&, ::BlockPos const&, ::Block const& block) const /*override*/;
33
34 // vIndex: 111
35 virtual ::std::string buildDescriptionId(::Block const& block) const /*override*/;
36
37 // vIndex: 55
38 virtual bool canBeUsedInCommands(::BaseGameVersion const& requiredBaseGameVersion) const /*override*/;
39
40 // vIndex: 126
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 // virtual function thunks
67 // NOLINTBEGIN
68 MCAPI ::mce::Color $getMapColor(::BlockSource&, ::BlockPos const&, ::Block const& block) const;
69
70 MCAPI ::std::string $buildDescriptionId(::Block const& block) const;
71
72 MCFOLD bool $canBeUsedInCommands(::BaseGameVersion const& requiredBaseGameVersion) const;
73
74 MCAPI ::Block const* $tryLegacyUpgrade(ushort extraData) const;
75 // NOLINTEND
76
77public:
78 // vftables
79 // NOLINTBEGIN
80 MCNAPI static void** $vftable();
81 // NOLINTEND
82};
Definition BaseGameVersion.h:8
Definition BlockLegacy.h:88
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:38
Definition ElementBlock.h:21
static MCAPI void ** $vftable()
Definition ItemInstance.h:16
Definition RecipeIngredient.h:17
Definition ElementInfo.h:5