LeviLamina
Loading...
Searching...
No Matches
FenceGateBlock.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/optional_ref.h"
7#include "mc/world/level/block/BlockLegacy.h"
8#include "mc/world/level/block/WoodType.h"
9
10// auto generated forward declare list
11// clang-format off
12class AABB;
13class Actor;
14class Block;
15class BlockPos;
16class BlockSource;
17class Experiments;
20class Player;
21class Random;
22namespace BlockEvents { class BlockPlaceEvent; }
23// clang-format on
24
26public:
27 // virtual functions
28 // NOLINTBEGIN
29 // vIndex: 67
30 virtual void setupRedstoneComponent(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
31
32 // vIndex: 61
33 virtual void onRedstoneUpdate(::BlockSource& region, ::BlockPos const& pos, int strength, bool isFirstTime) const
34 /*override*/;
35
36 // vIndex: 5
37 virtual ::AABB
38 getCollisionShape(::Block const& block, ::IConstBlockSource const&, ::BlockPos const& pos, ::optional_ref<::GetCollisionShapeInterface const>)
39 const /*override*/;
40
41 // vIndex: 9
42 virtual ::AABB const&
43 getOutline(::Block const& block, ::IConstBlockSource const&, ::BlockPos const& pos, ::AABB& bufferValue) const
44 /*override*/;
45
46 // vIndex: 87
47 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
48 /*override*/;
49
50 // vIndex: 136
51 virtual void tick(::BlockSource& region, ::BlockPos const& pos, ::Random& random) const /*override*/;
52
53 // vIndex: 139
54 virtual bool use(::Player& player, ::BlockPos const& pos, uchar) const /*override*/;
55
56 // vIndex: 138
57 virtual bool isInteractiveBlock() const /*override*/;
58
59 // vIndex: 73
60 virtual bool ignoreEntitiesOnPistonMove(::Block const& block) const /*override*/;
61
62 // vIndex: 25
63 virtual bool canConnect(::Block const& otherBlock, uchar toOther, ::Block const& thisBlock) const /*override*/;
64
65 // vIndex: 13
66 virtual bool
67 getLiquidClipVolume(::Block const& block, ::BlockSource& region, ::BlockPos const& pos, ::AABB& includeBox) const
68 /*override*/;
69
70 // vIndex: 33
71 virtual bool isFenceGateBlock() const /*override*/;
72
73 // vIndex: 131
74 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
75
76 // vIndex: 148
77 virtual void _onHitByActivatingAttack(::BlockSource& region, ::BlockPos const& pos, ::Actor*) const /*override*/;
78
79 // vIndex: 0
80 virtual ~FenceGateBlock() /*override*/ = default;
81 // NOLINTEND
82
83public:
84 // member functions
85 // NOLINTBEGIN
86 MCAPI FenceGateBlock(::std::string const& nameId, int id, ::WoodType);
87
88 MCAPI void _setOpen(
89 ::BlockSource& region,
90 ::gsl::not_null<::Block const*> block,
91 ::BlockPos const& pos,
92 ::Player* player,
93 bool shouldBeOpen
94 ) const;
95
96 MCAPI void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
97
98 MCAPI void resolveIsInWall(::BlockSource& region, ::BlockPos const& pos) const;
99 // NOLINTEND
100
101public:
102 // static functions
103 // NOLINTBEGIN
104 MCAPI static ::AABB const&
105 _getShape(::BlockPos const& pos, ::Block const& block, ::AABB& bufferValue, bool isCollisionShape);
106 // NOLINTEND
107
108public:
109 // constructor thunks
110 // NOLINTBEGIN
111 MCAPI void* $ctor(::std::string const& nameId, int id, ::WoodType);
112 // NOLINTEND
113
114public:
115 // destructor thunk
116 // NOLINTBEGIN
117
118 // NOLINTEND
119
120public:
121 // virtual function thunks
122 // NOLINTBEGIN
123 MCAPI void $setupRedstoneComponent(::BlockSource& region, ::BlockPos const& pos) const;
124
125 MCAPI void $onRedstoneUpdate(::BlockSource& region, ::BlockPos const& pos, int strength, bool isFirstTime) const;
126
127 MCAPI ::AABB
128 $getCollisionShape(::Block const& block, ::IConstBlockSource const&, ::BlockPos const& pos, ::optional_ref<::GetCollisionShapeInterface const>)
129 const;
130
131 MCAPI ::AABB const&
132 $getOutline(::Block const& block, ::IConstBlockSource const&, ::BlockPos const& pos, ::AABB& bufferValue) const;
133
134 MCAPI void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
135
136 MCAPI void $tick(::BlockSource& region, ::BlockPos const& pos, ::Random& random) const;
137
138 MCAPI bool $use(::Player& player, ::BlockPos const& pos, uchar) const;
139
140 MCFOLD bool $isInteractiveBlock() const;
141
142 MCAPI bool $ignoreEntitiesOnPistonMove(::Block const& block) const;
143
144 MCAPI bool $canConnect(::Block const& otherBlock, uchar toOther, ::Block const& thisBlock) const;
145
146 MCFOLD bool
147 $getLiquidClipVolume(::Block const& block, ::BlockSource& region, ::BlockPos const& pos, ::AABB& includeBox) const;
148
149 MCFOLD bool $isFenceGateBlock() const;
150
151 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
152
153 MCAPI void $_onHitByActivatingAttack(::BlockSource& region, ::BlockPos const& pos, ::Actor*) const;
154 // NOLINTEND
155
156public:
157 // vftables
158 // NOLINTBEGIN
159 MCAPI static void** $vftable();
160 // NOLINTEND
161};
Definition AABB.h:16
Definition Actor.h:104
Definition BlockPlaceEvent.h:15
Definition BlockLegacy.h:88
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:36
Definition Experiments.h:14
Definition FenceGateBlock.h:25
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:24
Definition Player.h:119
Definition Random.h:16
Definition optional_ref.h:10