LeviLamina
Loading...
Searching...
No Matches
DaylightDetectorBlock.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/Direction.h"
7#include "mc/world/level/block/ActorBlockBase.h"
8#include "mc/world/level/block/BlockSupportType.h"
9#include "mc/world/level/block/BlockType.h"
10
11// auto generated forward declare list
12// clang-format off
13class Actor;
14class Block;
15class BlockPos;
16class BlockSource;
17namespace BlockEvents { class BlockPlaceEvent; }
18namespace BlockEvents { class BlockPlayerInteractEvent; }
19// clang-format on
20
21class DaylightDetectorBlock : public ::ActorBlock {
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<1, 1, bool> mIsInverted;
26 // NOLINTEND
27
28public:
29 // prevent constructor by default
30 DaylightDetectorBlock();
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 virtual void setupRedstoneComponent(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
36
37 virtual void onRemove(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
38
39 virtual void updateSignalStrength(::BlockSource& region, ::BlockPos const& pos) const;
40
41 virtual bool
42 shouldConnectToRedstone(::BlockSource& region, ::BlockPos const& pos, ::Direction::Type direction) const
43 /*override*/;
44
45 virtual bool isInteractiveBlock() const /*override*/;
46
47 virtual bool isSignalSource() const /*override*/;
48
49 virtual int getVariant(::Block const& block) const /*override*/;
50
51 virtual bool checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const
52 /*override*/;
53
54 virtual bool canProvideSupport(::Block const&, uchar face, ::BlockSupportType) const /*override*/;
55 // NOLINTEND
56
57public:
58 // member functions
59 // NOLINTBEGIN
60 MCAPI DaylightDetectorBlock(::std::string const& nameId, int id, bool isInverted);
61
62 MCFOLD void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
63
64 MCAPI void use(::BlockEvents::BlockPlayerInteractEvent& eventData) const;
65 // NOLINTEND
66
67public:
68 // constructor thunks
69 // NOLINTBEGIN
70 MCAPI void* $ctor(::std::string const& nameId, int id, bool isInverted);
71 // NOLINTEND
72
73public:
74 // virtual function thunks
75 // NOLINTBEGIN
76 MCAPI void $setupRedstoneComponent(::BlockSource& region, ::BlockPos const& pos) const;
77
78 MCFOLD void $onRemove(::BlockSource& region, ::BlockPos const& pos) const;
79
80 MCAPI void $updateSignalStrength(::BlockSource& region, ::BlockPos const& pos) const;
81
82 MCFOLD bool
83 $shouldConnectToRedstone(::BlockSource& region, ::BlockPos const& pos, ::Direction::Type direction) const;
84
85 MCFOLD bool $isInteractiveBlock() const;
86
87 MCFOLD bool $isSignalSource() const;
88
89 MCFOLD int $getVariant(::Block const& block) const;
90
91 MCFOLD bool $checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const;
92
93 MCFOLD bool $canProvideSupport(::Block const&, uchar face, ::BlockSupportType) const;
94
95
96 // NOLINTEND
97
98public:
99 // vftables
100 // NOLINTBEGIN
101 MCAPI static void** $vftable();
102 // NOLINTEND
103};
Definition Actor.h:113
Definition BlockPlaceEvent.h:16
Definition BlockPlayerInteractEvent.h:18
Definition BlockPos.h:17
Definition BlockSource.h:71
Definition Block.h:41