Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
HangingSignBlock.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/BlockSupportType.h"
8#include "mc/world/level/block/SignBlock.h"
9
10// auto generated forward declare list
11// clang-format off
12class AABB;
13class Actor;
14class Block;
15class BlockPos;
16class BlockSource;
19class ItemInstance;
20// clang-format on
21
23public:
24 // virtual functions
25 // NOLINTBEGIN
26 virtual ::AABB const& getVisualShape(::Block const& block, ::AABB& bufferAABB) const /*override*/;
27
28 virtual ::AABB getCollisionShape(
29 ::Block const& block,
31 ::BlockPos const& pos,
33 ) const /*override*/;
34
35 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
36
37 virtual bool canProvideSupport(::Block const&, uchar face, ::BlockSupportType type) const /*override*/;
38
39 virtual bool checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const
40 /*override*/;
41
42 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos, uchar face) const /*override*/;
43
44 virtual float getYRotationInDegrees(::Block const& block) const /*override*/;
45
46 virtual ::ItemInstance _getItemInstance() const /*override*/;
47 // NOLINTEND
48
49public:
50 // member functions
51 // NOLINTBEGIN
52 MCAPI bool _canAttachTo(::BlockSource& region, ::BlockPos const attachPos, uchar attachFace, uchar ourFace) const;
53 // NOLINTEND
54
55public:
56 // static functions
57 // NOLINTBEGIN
58 MCAPI static bool _isDoubleChainAttached(::Block const& block);
59
60 MCAPI static bool _isHangingSign(::Block const& block);
61
62 MCAPI static bool _isVShapedChainAttached(::Block const& block);
63
64 MCAPI static bool isSideAttachedHangingSign(::Block const& block);
65 // NOLINTEND
66
67public:
68 // virtual function thunks
69 // NOLINTBEGIN
70 MCNAPI ::AABB const& $getVisualShape(::Block const& block, ::AABB& bufferAABB) const;
71
72 MCNAPI ::AABB $getCollisionShape(
73 ::Block const& block,
75 ::BlockPos const& pos,
77 ) const;
78
79 MCNAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
80
81 MCNAPI bool $canProvideSupport(::Block const&, uchar face, ::BlockSupportType type) const;
82
83 MCAPI bool $checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const;
84
85 MCNAPI bool $mayPlace(::BlockSource& region, ::BlockPos const& pos, uchar face) const;
86
87 MCAPI float $getYRotationInDegrees(::Block const& block) const;
88
89 MCNAPI ::ItemInstance $_getItemInstance() const;
90
91
92 // NOLINTEND
93
94public:
95 // vftables
96 // NOLINTBEGIN
97 MCNAPI static void** $vftable();
98 // NOLINTEND
99};
Definition AABB.h:18
Definition Actor.h:116
Definition BlockPos.h:14
Definition BlockSource.h:72
Definition Block.h:42
Definition GetCollisionShapeInterface.h:13
Definition HangingSignBlock.h:22
MCAPI bool $canSurvive(::BlockSource &region, ::BlockPos const &pos) const
MCAPI bool $canProvideSupport(::Block const &, uchar face, ::BlockSupportType type) const
static MCAPI void ** $vftable()
MCAPI::AABB const & $getVisualShape(::Block const &block, ::AABB &bufferAABB) const
MCAPI::ItemInstance $_getItemInstance() const
MCAPI bool $mayPlace(::BlockSource &region, ::BlockPos const &pos, uchar face) const
MCAPI::AABB $getCollisionShape(::Block const &block, ::IConstBlockSource const &, ::BlockPos const &pos, ::optional_ref<::GetCollisionShapeInterface const >) const
Definition IConstBlockSource.h:25
Definition ItemInstance.h:15
Definition SignBlock.h:32
Definition optional_ref.h:10