Skip to content
LeviMC
English
AutoLightDark
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 // virtual functions
22 // NOLINTBEGIN
23 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
24
25 virtual bool canProvideSupport(::Block const&, uchar face, ::BlockSupportType type) const /*override*/;
26
27 virtual bool checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const
28 /*override*/;
29
30 virtual ::std::string buildDescriptionId(::Block const&) const /*override*/;
31
32 virtual int getVariant(::Block const& block) const /*override*/;
33 // NOLINTEND
34
35public:
36 // member functions
37 // NOLINTBEGIN
38 MCNAPI void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
39
40 MCNAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
41 // NOLINTEND
42
43public:
44 // virtual function thunks
45 // NOLINTBEGIN
46 MCNAPI bool $mayPlace(::BlockSource& region, ::BlockPos const& pos) const;
47
48 MCNAPI bool $canProvideSupport(::Block const&, uchar face, ::BlockSupportType type) const;
49
50 MCNAPI bool $checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const;
51
52 MCNAPI ::std::string $buildDescriptionId(::Block const&) const;
53
54 MCNAPI int $getVariant(::Block const& block) const;
55
56
57 // NOLINTEND
58
59public:
60 // vftables
61 // NOLINTBEGIN
62 MCNAPI static void** $vftable();
63 // NOLINTEND
64};
Definition Actor.h:116
Definition BlockPlaceEvent.h:16
Definition BlockQueuedTickEvent.h:16
Definition BlockPos.h:14
Definition BlockSource.h:72
Definition Block.h:42
Definition SnifferEggBlock.h:19
MCAPI bool $canProvideSupport(::Block const &, uchar face, ::BlockSupportType type) const
MCAPI bool $mayPlace(::BlockSource &region, ::BlockPos const &pos) const
MCAPI bool $checkIsPathable(::Actor &entity, ::BlockPos const &lastPathPos, ::BlockPos const &pathPos) const
MCAPI void tick(::BlockEvents::BlockQueuedTickEvent &eventData) const
MCAPI::std::string $buildDescriptionId(::Block const &) const
MCAPI void onPlace(::BlockEvents::BlockPlaceEvent &eventData) const
MCAPI int $getVariant(::Block const &block) const
static MCAPI void ** $vftable()