Skip to content
LeviMC
English
AutoLightDark
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 // virtual functions
30 // NOLINTBEGIN
31 virtual void setupRedstoneComponent(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
32
33 virtual bool requiresLegacyRedstoneSetup() const /*override*/;
34
35 virtual void onRemove(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
36
37 virtual void updateSignalStrength(::BlockSource& region, ::BlockPos const& pos) const;
38
39 virtual bool
40 shouldConnectToRedstone(::BlockSource& region, ::BlockPos const& pos, ::Direction::Type direction) const
41 /*override*/;
42
43 virtual bool isInteractiveBlock() const /*override*/;
44
45 virtual bool isSignalSource() const /*override*/;
46
47 virtual int getVariant(::Block const& block) const /*override*/;
48
49 virtual bool checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const
50 /*override*/;
51
52 virtual bool canProvideSupport(::Block const&, uchar face, ::BlockSupportType) const /*override*/;
53 // NOLINTEND
54
55public:
56 // member functions
57 // NOLINTBEGIN
58 MCNAPI void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
59
60 MCNAPI void use(::BlockEvents::BlockPlayerInteractEvent& eventData) const;
61 // NOLINTEND
62
63public:
64 // virtual function thunks
65 // NOLINTBEGIN
66 MCNAPI void $setupRedstoneComponent(::BlockSource& region, ::BlockPos const& pos) const;
67
68 MCNAPI bool $requiresLegacyRedstoneSetup() const;
69
70 MCNAPI void $onRemove(::BlockSource& region, ::BlockPos const& pos) const;
71
72 MCNAPI void $updateSignalStrength(::BlockSource& region, ::BlockPos const& pos) const;
73
74 MCNAPI bool
75 $shouldConnectToRedstone(::BlockSource& region, ::BlockPos const& pos, ::Direction::Type direction) const;
76
77 MCNAPI bool $isInteractiveBlock() const;
78
79 MCNAPI bool $isSignalSource() const;
80
81 MCNAPI int $getVariant(::Block const& block) const;
82
83 MCNAPI bool $checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const;
84
85 MCNAPI bool $canProvideSupport(::Block const&, uchar face, ::BlockSupportType) const;
86
87
88 // NOLINTEND
89
90public:
91 // vftables
92 // NOLINTBEGIN
93 MCNAPI static void** $vftable();
94 // NOLINTEND
95};
Definition Actor.h:116
Definition BlockPlaceEvent.h:16
Definition BlockPlayerInteractEvent.h:18
Definition BlockPos.h:14
Definition BlockSource.h:72
Definition Block.h:42
Definition DaylightDetectorBlock.h:21
MCAPI bool $canProvideSupport(::Block const &, uchar face, ::BlockSupportType) const
MCAPI bool $requiresLegacyRedstoneSetup() const
MCAPI void $onRemove(::BlockSource &region, ::BlockPos const &pos) const
MCAPI void use(::BlockEvents::BlockPlayerInteractEvent &eventData) const
MCAPI bool $shouldConnectToRedstone(::BlockSource &region, ::BlockPos const &pos, ::Direction::Type direction) const
MCAPI void onPlace(::BlockEvents::BlockPlaceEvent &eventData) const
MCAPI bool $isInteractiveBlock() const
MCAPI int $getVariant(::Block const &block) const
static MCAPI void ** $vftable()
MCAPI bool $checkIsPathable(::Actor &entity, ::BlockPos const &lastPathPos, ::BlockPos const &pathPos) const
MCAPI bool $isSignalSource() const
MCAPI void $updateSignalStrength(::BlockSource &region, ::BlockPos const &pos) const
MCAPI void $setupRedstoneComponent(::BlockSource &region, ::BlockPos const &pos) const