Skip to content
LeviMC
English
AutoLightDark
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/item/HandSlot.h"
8#include "mc/world/level/block/BlockType.h"
9
10// auto generated forward declare list
11// clang-format off
12class Actor;
13class Block;
14class BlockPos;
15class BlockSource;
16class ItemStack;
17namespace BlockEvents { class BlockPlayerInteractEvent; }
18// clang-format on
19
20class RootedDirtBlock : public ::BlockType {
21public:
22 // virtual functions
23 // NOLINTBEGIN
24 virtual bool
25 onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const
26 /*override*/;
27
28 virtual bool canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const
29 /*override*/;
30
31 virtual bool tryToTill(
32 ::BlockSource& region,
33 ::BlockPos const& pos,
34 ::Actor& entity,
35 ::ItemStack& item,
36 ::HandSlot handSlot
37 ) const /*override*/;
38
39 virtual bool canBeOriginalSurface(bool) const /*override*/;
40 // NOLINTEND
41
42public:
43 // member functions
44 // NOLINTBEGIN
45 MCNAPI void use(::BlockEvents::BlockPlayerInteractEvent& eventData) const;
46 // NOLINTEND
47
48public:
49 // virtual function thunks
50 // NOLINTBEGIN
51 MCNAPI bool
52 $onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const;
53
54 MCNAPI bool $canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const;
55
56 MCNAPI bool $tryToTill(
57 ::BlockSource& region,
58 ::BlockPos const& pos,
59 ::Actor& entity,
60 ::ItemStack& item,
61 ::HandSlot handSlot
62 ) const;
63
64 MCNAPI bool $canBeOriginalSurface(bool) const;
65
66
67 // NOLINTEND
68
69public:
70 // vftables
71 // NOLINTBEGIN
72 MCNAPI static void** $vftable();
73 // NOLINTEND
74};
Definition Actor.h:116
Definition BlockPlayerInteractEvent.h:18
Definition BlockPos.h:14
Definition BlockSource.h:72
Definition Block.h:42
Definition ItemStack.h:26
Definition RootedDirtBlock.h:20
MCAPI bool $onFertilized(::BlockSource &region, ::BlockPos const &pos, ::Actor *actor, ::FertilizerType fType) const
MCAPI bool $canBeOriginalSurface(bool) const
MCAPI bool $canBeFertilized(::BlockSource &region, ::BlockPos const &pos, ::Block const &aboveBlock) const
MCAPI bool $tryToTill(::BlockSource &region, ::BlockPos const &pos, ::Actor &entity, ::ItemStack &item, ::HandSlot handSlot) const
MCAPI void use(::BlockEvents::BlockPlayerInteractEvent &eventData) const
static MCAPI void ** $vftable()