Skip to content
LeviMC
English
AutoLightDark
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 // virtual functions
23 // NOLINTBEGIN
24 virtual ::AABB getCollisionShape(
25 ::Block const&,
27 ::BlockPos const&,
29 ) const /*override*/;
30
31 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
32
33 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
34 /*override*/;
35
36 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
37 // NOLINTEND
38
39public:
40 // member functions
41 // NOLINTBEGIN
42 MCNAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
43 // NOLINTEND
44
45public:
46 // virtual function thunks
47 // NOLINTBEGIN
48 MCNAPI ::AABB $getCollisionShape(
49 ::Block const&,
51 ::BlockPos const&,
53 ) const;
54
55 MCNAPI bool $mayPlace(::BlockSource& region, ::BlockPos const& pos) const;
56
57 MCNAPI void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
58
59 MCNAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
60
61
62 // NOLINTEND
63
64public:
65 // vftables
66 // NOLINTBEGIN
67 MCNAPI static void** $vftable();
68 // NOLINTEND
69};
Definition AABB.h:18
Definition BlockQueuedTickEvent.h:16
Definition BlockPos.h:14
Definition BlockSource.h:72
Definition Block.h:42
Definition GetCollisionShapeInterface.h:13
Definition HangingRootsBlock.h:20
MCAPI bool $canSurvive(::BlockSource &region, ::BlockPos const &pos) const
MCAPI bool $mayPlace(::BlockSource &region, ::BlockPos const &pos) const
MCAPI void $neighborChanged(::BlockSource &region, ::BlockPos const &pos, ::BlockPos const &neighborPos) const
MCAPI::AABB $getCollisionShape(::Block const &, ::IConstBlockSource const &, ::BlockPos const &, ::optional_ref<::GetCollisionShapeInterface const >) const
MCAPI void tick(::BlockEvents::BlockQueuedTickEvent &eventData) const
static MCAPI void ** $vftable()
Definition IConstBlockSource.h:25
Definition optional_ref.h:10