LeviLamina
Loading...
Searching...
No Matches
SnifferEggBlock.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/block/BlockSupportType.h"
7#include "mc/world/level/block/BlockType.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class Block;
13class BlockPos;
14class BlockSource;
15namespace BlockEvents { class BlockPlaceEvent; }
16namespace BlockEvents { class BlockQueuedTickEvent; }
17// clang-format on
18
19class SnifferEggBlock : public ::BlockType {
20public:
21 // prevent constructor by default
22 SnifferEggBlock();
23
24public:
25 // virtual functions
26 // NOLINTBEGIN
27 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
28
29 virtual bool canProvideSupport(::Block const& face, uchar type, ::BlockSupportType) const /*override*/;
30
31 virtual bool checkIsPathable(::Actor&, ::BlockPos const&, ::BlockPos const&) const /*override*/;
32
33 virtual ::std::string buildDescriptionId(::Block const&) const /*override*/;
34
35 virtual int getVariant(::Block const& block) const /*override*/;
36 // NOLINTEND
37
38public:
39 // member functions
40 // NOLINTBEGIN
41 MCAPI SnifferEggBlock(::std::string const& nameId, int id);
42
43 MCAPI void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
44
45 MCAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
46 // NOLINTEND
47
48public:
49 // constructor thunks
50 // NOLINTBEGIN
51 MCAPI void* $ctor(::std::string const& nameId, int id);
52 // NOLINTEND
53
54public:
55 // virtual function thunks
56 // NOLINTBEGIN
57 MCFOLD bool $mayPlace(::BlockSource& region, ::BlockPos const& pos) const;
58
59 MCFOLD bool $canProvideSupport(::Block const& face, uchar type, ::BlockSupportType) const;
60
61 MCFOLD bool $checkIsPathable(::Actor&, ::BlockPos const&, ::BlockPos const&) const;
62
63 MCFOLD ::std::string $buildDescriptionId(::Block const&) const;
64
65 MCAPI int $getVariant(::Block const& block) const;
66
67
68 // NOLINTEND
69
70public:
71 // vftables
72 // NOLINTBEGIN
73 MCAPI static void** $vftable();
74 // NOLINTEND
75};
Definition Actor.h:125
Definition BlockPlaceEvent.h:18
Definition BlockQueuedTickEvent.h:18
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition Block.h:69