LeviLamina
Loading...
Searching...
No Matches
GrindstoneBlock.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/block/BlockLegacy.h"
7#include "mc/world/level/block/BlockSupportType.h"
8
9// auto generated forward declare list
10// clang-format off
11class AABB;
12class Actor;
13class Block;
14class BlockPos;
15class BlockSource;
16class Experiments;
17class Vec3;
18namespace BlockEvents { class BlockPlayerInteractEvent; }
19namespace BlockEvents { class BlockQueuedTickEvent; }
20// clang-format on
21
23public:
24 // virtual functions
25 // NOLINTBEGIN
26 // vIndex: 11
27 virtual ::AABB const& getVisualShape(::Block const& block, ::AABB& bufferAABB) const /*override*/;
28
29 // vIndex: 91
30 virtual ::Block const&
31 getPlacementBlock(::Actor const& by, ::BlockPos const& pos, uchar face, ::Vec3 const& clickPos, int itemValue) const
32 /*override*/;
33
34 // vIndex: 138
35 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
36
37 // vIndex: 86
38 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
39 /*override*/;
40
41 // vIndex: 136
42 virtual bool isInteractiveBlock() const /*override*/;
43
44 // vIndex: 22
45 virtual bool canProvideSupport(::Block const& block, uchar face, ::BlockSupportType type) const /*override*/;
46
47 // vIndex: 130
48 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
49
50 // vIndex: 0
51 virtual ~GrindstoneBlock() /*override*/ = default;
52 // NOLINTEND
53
54public:
55 // member functions
56 // NOLINTBEGIN
57 MCAPI ::Block const& _determineAttachment(::Actor const& by, ::BlockPos const& pos, uchar face) const;
58
59 MCFOLD void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
60
61 MCFOLD void use(::BlockEvents::BlockPlayerInteractEvent& eventData) const;
62 // NOLINTEND
63
64public:
65 // virtual function thunks
66 // NOLINTBEGIN
67 MCAPI ::AABB const& $getVisualShape(::Block const& block, ::AABB& bufferAABB) 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 bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
78
79 MCFOLD void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
80
81 MCFOLD bool $isInteractiveBlock() const;
82
83 MCAPI bool $canProvideSupport(::Block const& block, uchar face, ::BlockSupportType type) const;
84
85 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
86 // NOLINTEND
87
88public:
89 // vftables
90 // NOLINTBEGIN
91 MCNAPI static void** $vftable();
92 // NOLINTEND
93};
Definition AABB.h:18
Definition Actor.h:103
Definition BlockPlayerInteractEvent.h:17
Definition BlockQueuedTickEvent.h:16
Definition BlockLegacy.h:88
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:38
Definition Experiments.h:14
Definition GrindstoneBlock.h:22
static MCAPI void ** $vftable()
Definition Vec3.h:10