Lodestone.Level
Loading...
Searching...
No Matches
BlockItem.h
Go to the documentation of this file.
1//
2// Created by DexrnZacAttack on 11/14/25 using zPc-i2.
3//
4#ifndef LODESTONE_BLOCKITEM_H
5#define LODESTONE_BLOCKITEM_H
7
9 class BlockItem final : public Item {
10 public:
13 : Item(id, nullptr, 64), m_block(block) {};
14
15 constexpr const level::block::Block *getBlock() const {
16 return m_block;
17 };
18
19 private:
21 };
22} // namespace lodestone::level::item::block
23
24#endif // LODESTONE_BLOCKITEM_H
Definition Block.h:18
constexpr Item(const lodestone::common::registry::Identifier *id, const properties::definition::ObjectDefinition *definition, const int maxStack=64)
Definition Item.h:23
const lodestone::level::block::Block * m_block
Definition BlockItem.h:20
constexpr const level::block::Block * getBlock() const
Definition BlockItem.h:15
constexpr BlockItem(const common::registry::Identifier *id, const level::block::Block *block)
Definition BlockItem.h:11
Definition BlockItem.cpp:6
return nullptr
Definition ItemInstance.cpp:29