LeviLamina
Loading...
Searching...
No Matches
CopperBulbBlock.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/common/Brightness.h"
7#include "mc/world/Direction.h"
8#include "mc/world/level/block/BlockType.h"
9#include "mc/world/level/block/CopperBlock.h"
10
11// auto generated forward declare list
12// clang-format off
13class Block;
14class BlockPos;
15class BlockSource;
16struct CopperBlockSet;
17namespace BlockEvents { class BlockQueuedTickEvent; }
18namespace BlockEvents { class BlockRedstoneUpdateEvent; }
19// clang-format on
20
21class CopperBulbBlock : public ::CopperBlock<::BlockType> {
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<1, 1, ::Brightness> mLitBrightness;
26 // NOLINTEND
27
28public:
29 // prevent constructor by default
30 CopperBulbBlock();
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 virtual bool hasComparatorSignal() const /*override*/;
36
37 virtual int getComparatorSignal(::BlockSource& block, ::BlockPos const&, ::Block const&, uchar) const /*override*/;
38
39 virtual bool shouldConnectToRedstone(::BlockSource&, ::BlockPos const&, ::Direction::Type) const /*override*/;
40
41 virtual ::Brightness getLightEmission(::Block const& block) const /*override*/;
42 // NOLINTEND
43
44public:
45 // member functions
46 // NOLINTBEGIN
47 MCAPI
48 CopperBulbBlock(::std::string const& nameId, int id, ::CopperBlockSet const& copperSet, ::Brightness litBrightness);
49
50 MCAPI void _onRedstoneUpdate(::BlockEvents::BlockRedstoneUpdateEvent& blockEvent) const;
51
52 MCAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
53 // NOLINTEND
54
55public:
56 // constructor thunks
57 // NOLINTBEGIN
58 MCAPI void*
59 $ctor(::std::string const& nameId, int id, ::CopperBlockSet const& copperSet, ::Brightness litBrightness);
60 // NOLINTEND
61
62public:
63 // virtual function thunks
64 // NOLINTBEGIN
65 MCFOLD bool $hasComparatorSignal() const;
66
67 MCAPI int $getComparatorSignal(::BlockSource& block, ::BlockPos const&, ::Block const&, uchar) const;
68
69 MCFOLD bool $shouldConnectToRedstone(::BlockSource&, ::BlockPos const&, ::Direction::Type) const;
70
71 MCAPI ::Brightness $getLightEmission(::Block const& block) const;
72
73
74 // NOLINTEND
75
76public:
77 // vftables
78 // NOLINTBEGIN
79 MCAPI static void** $vftable();
80 // NOLINTEND
81};
Definition BlockQueuedTickEvent.h:18
Definition BlockRedstoneUpdateEvent.h:16
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition Block.h:69
Definition CopperBlock.h:7
Definition Brightness.h:8
Definition CopperBlockSet.h:14