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&, uchar face, ::BlockSupportType type) const /*override*/;
30
31 virtual bool checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const
32 /*override*/;
33
34 virtual ::std::string buildDescriptionId(::Block const&) const /*override*/;
35
36 virtual int getVariant(::Block const& block) const /*override*/;
37 // NOLINTEND
38
39public:
40 // member functions
41 // NOLINTBEGIN
42 MCAPI SnifferEggBlock(::std::string const& nameId, int id);
43
44 MCAPI void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
45
46 MCAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
47 // NOLINTEND
48
49public:
50 // constructor thunks
51 // NOLINTBEGIN
52 MCAPI void* $ctor(::std::string const& nameId, int id);
53 // NOLINTEND
54
55public:
56 // virtual function thunks
57 // NOLINTBEGIN
58 MCFOLD bool $mayPlace(::BlockSource& region, ::BlockPos const& pos) const;
59
60 MCFOLD bool $canProvideSupport(::Block const&, uchar face, ::BlockSupportType type) const;
61
62 MCFOLD bool $checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const;
63
64 MCFOLD ::std::string $buildDescriptionId(::Block const&) const;
65
66 MCAPI int $getVariant(::Block const& block) const;
67
68
69 // NOLINTEND
70
71public:
72 // vftables
73 // NOLINTBEGIN
74 MCAPI static void** $vftable();
75 // NOLINTEND
76};
Definition Actor.h:113
Definition BlockPlaceEvent.h:16
Definition BlockQueuedTickEvent.h:16
Definition BlockPos.h:17
Definition BlockSource.h:71
Definition Block.h:41