LeviLamina
Loading...
Searching...
No Matches
HangingRootsBlock.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
9// auto generated forward declare list
10// clang-format off
11class AABB;
12class Block;
13class BlockPos;
14class BlockSource;
17namespace BlockEvents { class BlockQueuedTickEvent; }
18// clang-format on
19
20class HangingRootsBlock : public ::BlockType {
21public:
22 // prevent constructor by default
23 HangingRootsBlock();
24
25public:
26 // virtual functions
27 // NOLINTBEGIN
28 virtual ::AABB getCollisionShape(
29 ::Block const&,
31 ::BlockPos const&,
33 ) const /*override*/;
34
35 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
36
37 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
38 /*override*/;
39
40 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
41 // NOLINTEND
42
43public:
44 // member functions
45 // NOLINTBEGIN
46 MCAPI HangingRootsBlock(::std::string const& nameId, int id);
47
48 MCFOLD void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
49 // NOLINTEND
50
51public:
52 // constructor thunks
53 // NOLINTBEGIN
54 MCAPI void* $ctor(::std::string const& nameId, int id);
55 // NOLINTEND
56
57public:
58 // virtual function thunks
59 // NOLINTBEGIN
60 MCFOLD ::AABB $getCollisionShape(
61 ::Block const&,
63 ::BlockPos const&,
65 ) const;
66
67 MCAPI bool $mayPlace(::BlockSource& region, ::BlockPos const& pos) const;
68
69 MCFOLD void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
70
71 MCFOLD bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
72
73
74 // NOLINTEND
75
76public:
77 // vftables
78 // NOLINTBEGIN
79 MCAPI static void** $vftable();
80 // NOLINTEND
81};
Definition AABB.h:18
Definition BlockQueuedTickEvent.h:18
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition Block.h:69
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:24
Definition optional_ref.h:10