Skip to content
LeviMC
English
AutoLightDark
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 // virtual functions
24 // NOLINTBEGIN
25 virtual ::AABB const& getVisualShape(::Block const& block, ::AABB& bufferAABB) const /*override*/;
26
27 virtual ::Block const&
28 getPlacementBlock(::Actor const& by, ::BlockPos const& pos, uchar face, ::Vec3 const& clickPos, int itemValue) const
29 /*override*/;
30
31 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
32
33 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
34 /*override*/;
35
36 virtual bool isInteractiveBlock() const /*override*/;
37
38 virtual bool canProvideSupport(::Block const& block, uchar face, ::BlockSupportType type) const /*override*/;
39 // NOLINTEND
40
41public:
42 // member functions
43 // NOLINTBEGIN
44 MCNAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
45
46 MCNAPI void use(::BlockEvents::BlockPlayerInteractEvent& eventData) const;
47 // NOLINTEND
48
49public:
50 // virtual function thunks
51 // NOLINTBEGIN
52 MCNAPI ::AABB const& $getVisualShape(::Block const& block, ::AABB& bufferAABB) const;
53
54 MCNAPI ::Block const& $getPlacementBlock(
55 ::Actor const& by,
56 ::BlockPos const& pos,
57 uchar face,
58 ::Vec3 const& clickPos,
59 int itemValue
60 ) const;
61
62 MCNAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
63
64 MCNAPI void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
65
66 MCNAPI bool $isInteractiveBlock() const;
67
68 MCNAPI bool $canProvideSupport(::Block const& block, uchar face, ::BlockSupportType type) const;
69
70
71 // NOLINTEND
72
73public:
74 // vftables
75 // NOLINTBEGIN
76 MCNAPI static void** $vftable();
77 // NOLINTEND
78};
Definition AABB.h:18
Definition Actor.h:116
Definition BlockPlayerInteractEvent.h:18
Definition BlockQueuedTickEvent.h:16
Definition BlockPos.h:14
Definition BlockSource.h:72
Definition Block.h:42
Definition GrindstoneBlock.h:21
MCAPI bool $canSurvive(::BlockSource &region, ::BlockPos const &pos) const
MCAPI void $neighborChanged(::BlockSource &region, ::BlockPos const &pos, ::BlockPos const &neighborPos) const
MCAPI bool $isInteractiveBlock() const
MCAPI void use(::BlockEvents::BlockPlayerInteractEvent &eventData) const
static MCAPI void ** $vftable()
MCAPI void tick(::BlockEvents::BlockQueuedTickEvent &eventData) const
MCAPI bool $canProvideSupport(::Block const &block, uchar face, ::BlockSupportType type) const
MCAPI::Block const & $getPlacementBlock(::Actor const &by, ::BlockPos const &pos, uchar face, ::Vec3 const &clickPos, int itemValue) const
MCAPI::AABB const & $getVisualShape(::Block const &block, ::AABB &bufferAABB) const
Definition Vec3.h:10