LeviLamina
Loading...
Searching...
No Matches
FenceBlock.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/ShapeType.h"
8#include "mc/world/level/block/BlockType.h"
9
10// auto generated forward declare list
11// clang-format off
12class AABB;
13class BaseGameVersion;
14class Block;
15class BlockPos;
16class BlockSource;
18class HitResult;
20class Player;
21class Vec3;
22// clang-format on
23
24class FenceBlock : public ::BlockType {
25public:
26 // virtual functions
27 // NOLINTBEGIN
28 virtual ::AABB const&
29 getVisualShapeInWorld(::Block const& block, ::IConstBlockSource const&, ::BlockPos const&, ::AABB& bufferAABB) const
30 /*override*/;
31
32 virtual ::AABB getCollisionShape(
33 ::Block const& block,
35 ::BlockPos const& pos,
37 ) const /*override*/;
38
39 virtual ::AABB const&
40 getOutline(::Block const& block, ::IConstBlockSource const&, ::BlockPos const& pos, ::AABB& bufferValue) const
41 /*override*/;
42
43 virtual bool addCollisionShapes(
44 ::Block const& block,
45 ::IConstBlockSource const& region,
46 ::BlockPos const& pos,
47 ::AABB const* intersectTestBox,
48 ::std::vector<::AABB>& inoutBoxes,
50 ) const /*override*/;
51
52 virtual ::Block const* playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const
53 /*override*/;
54
55 virtual ::std::string buildDescriptionId(::Block const& block) const /*override*/;
56
57 virtual bool isFenceBlock() const /*override*/;
58
59 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
60
61 virtual bool breaksFallingBlocks(::Block const& block, ::BaseGameVersion const version) const /*override*/;
62
63 virtual ::HitResult clip(
64 ::Block const& block,
65 ::BlockSource const& region,
66 ::BlockPos const& pos,
67 ::Vec3 const& A,
68 ::Vec3 const& B,
69 ::ShapeType shapeType,
71 ) const /*override*/;
72 // NOLINTEND
73
74public:
75 // member functions
76 // NOLINTBEGIN
77 MCAPI void fetchPathableNeighbors(
78 ::std::vector<::BlockPos>& outNeighbors,
79 ::BlockSource& region,
80 ::BlockPos const& pos,
81 ::Vec3 const& entityPos
82 ) const;
83 // NOLINTEND
84
85public:
86 // static functions
87 // NOLINTBEGIN
88 MCFOLD static ::BlockType::HorizontalDirectionBits getConnectionsFromState(::Block const& block);
89 // NOLINTEND
90
91public:
92 // static variables
93 // NOLINTBEGIN
94 MCAPI static ::BaseGameVersion const& FENCE_DOESNT_BREAK_FALLING_BLOCK_VERSION();
95 // NOLINTEND
96
97public:
98 // virtual function thunks
99 // NOLINTBEGIN
100 MCAPI ::AABB const& $getVisualShapeInWorld(
101 ::Block const& block,
102 ::IConstBlockSource const&,
103 ::BlockPos const&,
104 ::AABB& bufferAABB
105 ) const;
106
107 MCAPI ::AABB $getCollisionShape(
108 ::Block const& block,
109 ::IConstBlockSource const&,
110 ::BlockPos const& pos,
112 ) const;
113
114 MCAPI ::AABB const&
115 $getOutline(::Block const& block, ::IConstBlockSource const&, ::BlockPos const& pos, ::AABB& bufferValue) const;
116
117 MCAPI bool $addCollisionShapes(
118 ::Block const& block,
119 ::IConstBlockSource const& region,
120 ::BlockPos const& pos,
121 ::AABB const* intersectTestBox,
122 ::std::vector<::AABB>& inoutBoxes,
124 ) const;
125
126 MCAPI ::Block const* $playerWillDestroy(::Player& player, ::BlockPos const& pos, ::Block const& block) const;
127
128 MCAPI ::std::string $buildDescriptionId(::Block const& block) const;
129
130 MCFOLD bool $isFenceBlock() const;
131
132 MCAPI bool $mayPlace(::BlockSource& region, ::BlockPos const& pos) const;
133
134 MCAPI bool $breaksFallingBlocks(::Block const& block, ::BaseGameVersion const version) const;
135
136 MCFOLD ::HitResult $clip(
137 ::Block const& block,
138 ::BlockSource const& region,
139 ::BlockPos const& pos,
140 ::Vec3 const& A,
141 ::Vec3 const& B,
142 ::ShapeType shapeType,
144 ) const;
145
146
147 // NOLINTEND
148
149public:
150 // vftables
151 // NOLINTBEGIN
152 MCAPI static void** $vftable();
153 // NOLINTEND
154};
Definition AABB.h:18
Definition BaseGameVersion.h:8
Definition BlockPos.h:17
Definition BlockSource.h:71
Definition Block.h:41
Definition FenceBlock.h:24
Definition GetCollisionShapeInterface.h:13
Definition HitResult.h:18
Definition IConstBlockSource.h:25
Definition Player.h:129
Definition Vec3.h:10
Definition optional_ref.h:10