Skip to content
LeviMC
English
AutoLightDark
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,
38 ::BlockPos const& pos,
40 ) const /*override*/;
41
42 virtual ::AABB const&
43 getOutline(::Block const& block, ::IConstBlockSource const&, ::BlockPos const& pos, ::AABB& bufferValue) 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 void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
54
55 virtual void _onHitByActivatingAttack(::BlockSource& region, ::BlockPos const& pos, ::Actor*) const /*override*/;
56 // NOLINTEND
57
58public:
59 // member functions
60 // NOLINTBEGIN
61 MCNAPI FenceGateBlock(::std::string const& nameId, int id, ::WoodType);
62
64
65 MCNAPI void _setOpen(
66 ::BlockSource& region,
67 ::gsl::not_null<::Block const*> block,
68 ::BlockPos const& pos,
69 ::Player* player,
70 bool shouldBeOpen
71 ) const;
72
73 MCNAPI void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
74
75 MCNAPI void resolveIsInWall(::BlockSource& region, ::BlockPos const& pos) const;
76
77 MCNAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
78
79 MCNAPI void use(::BlockEvents::BlockPlayerInteractEvent& eventData) const;
80 // NOLINTEND
81
82public:
83 // static functions
84 // NOLINTBEGIN
85 MCNAPI static ::AABB const&
86 _getShape(::BlockPos const& pos, ::Block const& block, ::AABB& bufferValue, bool isCollisionShape);
87
88 MCNAPI static void _onSetupRedstoneComponent(::BlockSource& region, ::BlockPos const& pos);
89 // NOLINTEND
90
91public:
92 // constructor thunks
93 // NOLINTBEGIN
94 MCNAPI void* $ctor(::std::string const& nameId, int id, ::WoodType);
95 // NOLINTEND
96
97public:
98 // virtual function thunks
99 // NOLINTBEGIN
100 MCNAPI ::AABB $getCollisionShape(
101 ::Block const& block,
102 ::IConstBlockSource const&,
103 ::BlockPos const& pos,
105 ) const;
106
107 MCNAPI ::AABB const&
108 $getOutline(::Block const& block, ::IConstBlockSource const&, ::BlockPos const& pos, ::AABB& bufferValue) const;
109
110 MCNAPI void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
111
112 MCNAPI bool $isInteractiveBlock() const;
113
114 MCNAPI bool $ignoreEntitiesOnPistonMove(::Block const& block) const;
115
117
118 MCNAPI void $_onHitByActivatingAttack(::BlockSource& region, ::BlockPos const& pos, ::Actor*) const;
119
120
121 // NOLINTEND
122
123public:
124 // vftables
125 // NOLINTBEGIN
126 MCAPI static void** $vftable();
127 // NOLINTEND
128};
Definition AABB.h:18
Definition Actor.h:116
Definition BlockPlaceEvent.h:16
Definition BlockPlayerInteractEvent.h:18
Definition BlockQueuedTickEvent.h:16
Definition BlockRedstoneUpdateEvent.h:15
Definition BlockPos.h:14
Definition BlockSource.h:72
Definition Block.h:42
Definition Experiments.h:14
static MCAPI ::AABB const & _getShape(::BlockPos const &pos, ::Block const &block, ::AABB &bufferValue, bool isCollisionShape)
MCAPI bool $isInteractiveBlock() const
MCAPI void _onRedstoneUpdate(::BlockEvents::BlockRedstoneUpdateEvent &blockEvent) const
MCAPI::AABB $getCollisionShape(::Block const &block, ::IConstBlockSource const &, ::BlockPos const &pos, ::optional_ref<::GetCollisionShapeInterface const >) const
MCAPI void onPlace(::BlockEvents::BlockPlaceEvent &eventData) const
MCAPI void _setOpen(::BlockSource &region, ::gsl::not_null<::Block const * > block, ::BlockPos const &pos, ::Player *player, bool shouldBeOpen) const
static MCAPI void _onSetupRedstoneComponent(::BlockSource &region, ::BlockPos const &pos)
MCAPI::AABB const & $getOutline(::Block const &block, ::IConstBlockSource const &, ::BlockPos const &pos, ::AABB &bufferValue) const
MCAPI bool $ignoreEntitiesOnPistonMove(::Block const &block) const
MCAPI FenceGateBlock(::std::string const &nameId, int id, ::WoodType)
MCAPI void $_addHardCodedBlockComponents(::Experiments const &)
MCAPI void * $ctor(::std::string const &nameId, int id, ::WoodType)
MCAPI void tick(::BlockEvents::BlockQueuedTickEvent &eventData) const
MCAPI void $_onHitByActivatingAttack(::BlockSource &region, ::BlockPos const &pos, ::Actor *) const
MCAPI void resolveIsInWall(::BlockSource &region, ::BlockPos const &pos) const
MCAPI void $neighborChanged(::BlockSource &region, ::BlockPos const &pos, ::BlockPos const &neighborPos) const
MCAPI void use(::BlockEvents::BlockPlayerInteractEvent &eventData) const
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:25
Definition Player.h:131
Definition optional_ref.h:10