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/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 Block;
14class BlockPos;
15class BlockSource;
16class Vec3;
17namespace BlockEvents { class BlockPlayerInteractEvent; }
18namespace BlockEvents { class BlockQueuedTickEvent; }
19// clang-format on
20
21class GrindstoneBlock : public ::BlockType {
22public:
23 // prevent constructor by default
24 GrindstoneBlock();
25
26public:
27 // virtual functions
28 // NOLINTBEGIN
29 virtual ::AABB const& getVisualShape(::Block const& block, ::AABB& bufferAABB) const /*override*/;
30
31 virtual ::Block const&
32 getPlacementBlock(::Actor const& by, ::BlockPos const& pos, uchar face, ::Vec3 const& clickPos, int itemValue) const
33 /*override*/;
34
35 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
36
37 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
38 /*override*/;
39
40 virtual bool isInteractiveBlock() const /*override*/;
41
42 virtual bool canProvideSupport(::Block const& block, uchar face, ::BlockSupportType type) const /*override*/;
43 // NOLINTEND
44
45public:
46 // member functions
47 // NOLINTBEGIN
48 MCAPI GrindstoneBlock(::std::string const& nameId, int id);
49
50 MCFOLD void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
51
52 MCFOLD void use(::BlockEvents::BlockPlayerInteractEvent& eventData) const;
53 // NOLINTEND
54
55public:
56 // constructor thunks
57 // NOLINTBEGIN
58 MCAPI void* $ctor(::std::string const& nameId, int id);
59 // NOLINTEND
60
61public:
62 // virtual function thunks
63 // NOLINTBEGIN
64 MCAPI ::AABB const& $getVisualShape(::Block const& block, ::AABB& bufferAABB) const;
65
66 MCAPI ::Block const& $getPlacementBlock(
67 ::Actor const& by,
68 ::BlockPos const& pos,
69 uchar face,
70 ::Vec3 const& clickPos,
71 int itemValue
72 ) const;
73
74 MCAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
75
76 MCFOLD void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
77
78 MCFOLD bool $isInteractiveBlock() const;
79
80 MCAPI bool $canProvideSupport(::Block const& block, uchar face, ::BlockSupportType type) const;
81
82
83 // NOLINTEND
84
85public:
86 // vftables
87 // NOLINTBEGIN
88 MCAPI static void** $vftable();
89 // NOLINTEND
90};
Definition AABB.h:18
Definition Actor.h:125
Definition BlockPlayerInteractEvent.h:20
Definition BlockQueuedTickEvent.h:18
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition Block.h:69
Definition Vec3.h:10