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/BlockType.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;
21namespace BlockEvents { class BlockPlaceEvent; }
22namespace BlockEvents { class BlockPlayerInteractEvent; }
23namespace BlockEvents { class BlockQueuedTickEvent; }
24namespace BlockEvents { class BlockRedstoneUpdateEvent; }
25// clang-format on
26
27class FenceGateBlock : public ::BlockType {
28public:
29 // prevent constructor by default
30 FenceGateBlock();
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 virtual ::AABB getCollisionShape(
36 ::Block const& block,
37 ::IConstBlockSource const& pos,
38 ::BlockPos const&,
40 ) const /*override*/;
41
42 virtual ::AABB const&
43 getOutline(::Block const& block, ::IConstBlockSource const& pos, ::BlockPos const& bufferValue, ::AABB&) const
44 /*override*/;
45
46 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
47 /*override*/;
48
49 virtual bool isInteractiveBlock() const /*override*/;
50
51 virtual bool ignoreEntitiesOnPistonMove(::Block const& block) const /*override*/;
52
53 virtual bool isFenceGateBlock() const /*override*/;
54
55 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
56
57 virtual void _onHitByActivatingAttack(::BlockSource& region, ::BlockPos const& pos, ::Actor*) const /*override*/;
58 // NOLINTEND
59
60public:
61 // member functions
62 // NOLINTBEGIN
63 MCAPI FenceGateBlock(::std::string const& nameId, int id, ::WoodType);
64
65 MCAPI void _onRedstoneUpdate(::BlockEvents::BlockRedstoneUpdateEvent& blockEvent) const;
66
67 MCAPI void _setOpen(
68 ::BlockSource& region,
69 ::gsl::not_null<::Block const*> block,
70 ::BlockPos const& pos,
71 ::Player* player,
72 bool shouldBeOpen
73 ) const;
74
75 MCFOLD void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
76
77 MCAPI void resolveIsInWall(::BlockSource& region, ::BlockPos const& pos) const;
78
79 MCFOLD void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
80
81 MCAPI void use(::BlockEvents::BlockPlayerInteractEvent& eventData) const;
82 // NOLINTEND
83
84public:
85 // static functions
86 // NOLINTBEGIN
87 MCAPI static ::AABB const&
88 _getShape(::BlockPos const& pos, ::Block const& block, ::AABB& bufferValue, bool isCollisionShape);
89
90 MCAPI static void _onSetupRedstoneComponent(::BlockSource& region, ::BlockPos const& pos);
91 // NOLINTEND
92
93public:
94 // constructor thunks
95 // NOLINTBEGIN
96 MCAPI void* $ctor(::std::string const& nameId, int id, ::WoodType);
97 // NOLINTEND
98
99public:
100 // virtual function thunks
101 // NOLINTBEGIN
102 MCAPI ::AABB $getCollisionShape(
103 ::Block const& block,
104 ::IConstBlockSource const& pos,
105 ::BlockPos const&,
107 ) const;
108
109 MCAPI ::AABB const&
110 $getOutline(::Block const& block, ::IConstBlockSource const& pos, ::BlockPos const& bufferValue, ::AABB&) const;
111
112 MCAPI void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
113
114 MCFOLD bool $isInteractiveBlock() const;
115
116 MCAPI bool $ignoreEntitiesOnPistonMove(::Block const& block) const;
117
118 MCFOLD bool $isFenceGateBlock() const;
119
120 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
121
122 MCAPI void $_onHitByActivatingAttack(::BlockSource& region, ::BlockPos const& pos, ::Actor*) const;
123
124
125 // NOLINTEND
126
127public:
128 // vftables
129 // NOLINTBEGIN
130 MCAPI static void** $vftable();
131 // NOLINTEND
132};
Definition AABB.h:18
Definition Actor.h:125
Definition BlockPlaceEvent.h:18
Definition BlockPlayerInteractEvent.h:20
Definition BlockQueuedTickEvent.h:18
Definition BlockRedstoneUpdateEvent.h:16
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition Block.h:69
Definition Experiments.h:14
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:24
Definition Player.h:137
Definition optional_ref.h:10