LeviLamina
Loading...
Searching...
No Matches
BlockEventBase.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/BlockPos.h"
7
8// auto generated forward declare list
9// clang-format off
10class Block;
11class BlockSource;
12// clang-format on
13
14namespace BlockEvents {
15
16class BlockEventBase {
17public:
18 // member variables
19 // NOLINTBEGIN
20 ::ll::TypedStorage<4, 12, ::BlockPos const> mPos;
21 // NOLINTEND
22
23public:
24 BlockEventBase() : mPos(BlockPos(0, 0, 0)) {}
25 BlockEventBase(BlockPos const& pos) : mPos(pos) {}
26
27public:
28 // virtual functions
29 // NOLINTBEGIN
30 virtual ~BlockEventBase() = default;
31
32 virtual ::Block const& getBlock() const;
33
34 virtual ::BlockSource const& getBlockSource() const = 0;
35 // NOLINTEND
36
37public:
38 // virtual function thunks
39 // NOLINTBEGIN
40 MCAPI ::Block const& $getBlock() const;
41
42
43 // NOLINTEND
44};
45
46} // namespace BlockEvents
Definition BlockPos.h:17
Definition BlockSource.h:71
Definition Block.h:41