LeviLamina
Loading...
Searching...
No Matches
EndRodBlock.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/block/BlockSupportType.h"
7#include "mc/world/level/block/BlockType.h"
8
9// auto generated forward declare list
10// clang-format off
11class AABB;
12class Actor;
13class BaseGameVersion;
14class Block;
15class BlockPos;
16class BlockSource;
17class Vec3;
19// clang-format on
20
21class EndRodBlock : public ::BlockType {
22public:
23 // prevent constructor by default
24 EndRodBlock();
25
26public:
27 // virtual functions
28 // NOLINTBEGIN
29 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
30
31 virtual bool mayPlace(::BlockSource&, ::BlockPos const&, uchar) const /*override*/;
32
33 virtual ::Block const&
34 getPlacementBlock(::Actor const& by, ::BlockPos const& pos, uchar face, ::Vec3 const& clickPos, int itemValue) const
35 /*override*/;
36
37 virtual void animateTickBedrockLegacy(::BlockAnimateTickData const& tickData) const /*override*/;
38
39 virtual bool breaksFallingBlocks(::Block const& block, ::BaseGameVersion const) const /*override*/;
40
41 virtual bool canProvideSupport(::Block const& block, uchar face, ::BlockSupportType type) const /*override*/;
42
43 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
44
45 virtual ::AABB const& getVisualShape(::Block const& block, ::AABB& bufferAABB) const /*override*/;
46
47 virtual bool checkIsPathable(::Actor&, ::BlockPos const&, ::BlockPos const&) const /*override*/;
48 // NOLINTEND
49
50public:
51 // member functions
52 // NOLINTBEGIN
53 MCAPI EndRodBlock(::std::string const& nameId, int id);
54 // NOLINTEND
55
56public:
57 // constructor thunks
58 // NOLINTBEGIN
59 MCAPI void* $ctor(::std::string const& nameId, int id);
60 // NOLINTEND
61
62public:
63 // virtual function thunks
64 // NOLINTBEGIN
65 MCFOLD bool $mayPlace(::BlockSource& region, ::BlockPos const& pos) const;
66
67 MCFOLD bool $mayPlace(::BlockSource&, ::BlockPos const&, uchar) const;
68
69 MCAPI ::Block const& $getPlacementBlock(
70 ::Actor const& by,
71 ::BlockPos const& pos,
72 uchar face,
73 ::Vec3 const& clickPos,
74 int itemValue
75 ) const;
76
77 MCAPI void $animateTickBedrockLegacy(::BlockAnimateTickData const& tickData) const;
78
79 MCAPI bool $breaksFallingBlocks(::Block const& block, ::BaseGameVersion const) const;
80
81 MCAPI bool $canProvideSupport(::Block const& block, uchar face, ::BlockSupportType type) const;
82
83 MCFOLD bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
84
85 MCAPI ::AABB const& $getVisualShape(::Block const& block, ::AABB& bufferAABB) const;
86
87 MCFOLD bool $checkIsPathable(::Actor&, ::BlockPos const&, ::BlockPos const&) const;
88
89
90 // NOLINTEND
91
92public:
93 // vftables
94 // NOLINTBEGIN
95 MCAPI static void** $vftable();
96 // NOLINTEND
97};
Definition AABB.h:18
Definition Actor.h:125
Definition BaseGameVersion.h:13
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition Block.h:69
Definition Vec3.h:10
Definition BlockAnimateTickData.h:14