22class ElementBlock :
public ::BlockType {
26 ::ll::TypedStorage<1, 1, ::ElementType> mType;
38 virtual ::std::string buildDescriptionId(
::Block const& block)
const ;
40 virtual bool canBeUsedInCommands(
::BaseGameVersion const& baseGameVersion)
const ;
42 virtual ::Block
const* tryLegacyUpgrade(ushort extraData)
const ;
48 MCAPI ElementBlock(::std::string
const& nameId,
int id, ::ElementType type);
58 MCAPI static ::ElementInfo getElementInfo(::ElementType e);
60 MCAPI static ::std::string getElementName(::ElementType e);
62 MCAPI static ::RecipeIngredient getIngredientForElement(::ElementType e,
int stackCount);
64 MCAPI static ::ItemInstance getItemForElement(::ElementType e,
int stackCount);
66 MCAPI
static void initElements();
70 MCAPI
static void shutdownElements();
72 MCAPI static ::BlockType
const* tryGetBlockTypeForElement(::ElementType e);
78 MCAPI static ::std::vector<::BlockType const*>& mElements();
84 MCAPI
void* $ctor(::std::string
const& nameId,
int id, ::ElementType type);
92 MCAPI ::std::string $buildDescriptionId(
::Block const& block)
const;
96 MCAPI ::Block
const* $tryLegacyUpgrade(ushort extraData)
const;
104 MCAPI
static void** $vftable();