LeviLamina
Loading...
Searching...
No Matches
TntBlock.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/block/BlockType.h"
7
8// auto generated forward declare list
9// clang-format off
10class Actor;
11class Block;
12class BlockPos;
13class BlockSource;
14class Container;
15class Player;
16class Vec3;
17namespace BlockEvents { class BlockPlayerInteractEvent; }
18namespace BlockEvents { class BlockRedstoneUpdateEvent; }
19// clang-format on
20
21class TntBlock : public ::BlockType {
22public:
23 // prevent constructor by default
24 TntBlock();
25
26public:
27 // virtual functions
28 // NOLINTBEGIN
29 virtual void onExploded(::BlockSource& region, ::BlockPos const& pos, ::Actor* entitySource) const /*override*/;
30
31 virtual void
32 destroy(::BlockSource& region, ::BlockPos const& pos, ::Block const& block, ::Actor* entitySource) const
33 /*override*/;
34
35 virtual bool dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar) const
36 /*override*/;
37
38 virtual bool shouldDispense(::BlockSource& region, ::Container&) const /*override*/;
39 // NOLINTEND
40
41public:
42 // member functions
43 // NOLINTBEGIN
44 MCAPI TntBlock(::std::string const& nameId, int id);
45
46 MCAPI void _onRedstoneUpdate(::BlockEvents::BlockRedstoneUpdateEvent& blockEvent) const;
47
48 MCAPI void _setAllowUnderwater(::Actor* e) const;
49
50 MCAPI void use(::BlockEvents::BlockPlayerInteractEvent& eventData) const;
51 // NOLINTEND
52
53public:
54 // static functions
55 // NOLINTBEGIN
56 MCAPI static bool tryLightTnt(::Player& player, ::BlockPos const& pos);
57 // NOLINTEND
58
59public:
60 // constructor thunks
61 // NOLINTBEGIN
62 MCAPI void* $ctor(::std::string const& nameId, int id);
63 // NOLINTEND
64
65public:
66 // virtual function thunks
67 // NOLINTBEGIN
68 MCAPI void $onExploded(::BlockSource& region, ::BlockPos const& pos, ::Actor* entitySource) const;
69
70 MCAPI void
71 $destroy(::BlockSource& region, ::BlockPos const& pos, ::Block const& block, ::Actor* entitySource) const;
72
73 MCAPI bool $dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar) const;
74
75 MCAPI bool $shouldDispense(::BlockSource& region, ::Container&) const;
76
77
78 // NOLINTEND
79
80public:
81 // vftables
82 // NOLINTBEGIN
83 MCAPI static void** $vftable();
84 // NOLINTEND
85};
Definition Actor.h:125
Definition BlockPlayerInteractEvent.h:20
Definition BlockRedstoneUpdateEvent.h:16
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition Block.h:69
Definition Container.h:34
Definition Player.h:137
Definition Vec3.h:10