LeviLamina
Loading...
Searching...
No Matches
RootedDirtBlock.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/item/FertilizerType.h"
7#include "mc/world/level/block/BlockType.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class Block;
13class BlockPos;
14class BlockSource;
15class ItemStack;
16namespace BlockEvents { class BlockPlayerInteractEvent; }
17// clang-format on
18
19class RootedDirtBlock : public ::BlockType {
20public:
21 // prevent constructor by default
22 RootedDirtBlock();
23
24public:
25 // virtual functions
26 // NOLINTBEGIN
27 virtual bool onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor*, ::FertilizerType) const
28 /*override*/;
29
30 virtual bool canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const&) const /*override*/;
31
32 virtual bool tryToTill(::BlockSource& region, ::BlockPos const& pos, ::Actor& entity, ::ItemStack& item) const
33 /*override*/;
34
35 virtual bool canBeOriginalSurface(bool) const /*override*/;
36 // NOLINTEND
37
38public:
39 // member functions
40 // NOLINTBEGIN
41 MCAPI RootedDirtBlock(::std::string const& nameId, int id);
42
43 MCAPI void use(::BlockEvents::BlockPlayerInteractEvent& eventData) const;
44 // NOLINTEND
45
46public:
47 // constructor thunks
48 // NOLINTBEGIN
49 MCAPI void* $ctor(::std::string const& nameId, int id);
50 // NOLINTEND
51
52public:
53 // virtual function thunks
54 // NOLINTBEGIN
55 MCAPI bool $onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor*, ::FertilizerType) const;
56
57 MCAPI bool $canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const&) const;
58
59 MCAPI bool $tryToTill(::BlockSource& region, ::BlockPos const& pos, ::Actor& entity, ::ItemStack& item) const;
60
61 MCFOLD bool $canBeOriginalSurface(bool) const;
62
63
64 // NOLINTEND
65
66public:
67 // vftables
68 // NOLINTBEGIN
69 MCAPI static void** $vftable();
70 // NOLINTEND
71};
Definition Actor.h:125
Definition BlockPlayerInteractEvent.h:20
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition Block.h:69
Definition ItemStack.h:35