LeviLamina
Loading...
Searching...
No Matches
FertilizerItem.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/Item.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class BlockPos;
13class BlockSource;
14class Container;
16class ItemStack;
17class ItemStackBase;
18class RenderParams;
19class Vec3;
20// clang-format on
21
22class FertilizerItem : public ::Item {
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<1, 1, ::FertilizerType> mType;
27 // NOLINTEND
28
29public:
30 // prevent constructor by default
31 FertilizerItem();
32
33public:
34 // virtual functions
35 // NOLINTBEGIN
36 virtual bool dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar) const
37 /*override*/;
38
39 virtual bool isFertilizer() const /*override*/;
40
41 virtual void executeEvent(::ItemStackBase& item, ::std::string const& name, ::RenderParams& params) const
42 /*override*/;
43
44 virtual ::InteractionResult
45 _useOn(::ItemStack& instance, ::Actor& entity, ::BlockPos pos, uchar face, ::Vec3 const& clickPos) const
46 /*override*/;
47 // NOLINTEND
48
49public:
50 // member functions
51 // NOLINTBEGIN
52 MCAPI FertilizerItem(::std::string const& name, int id, ::FertilizerType type);
53
54 MCFOLD ::FertilizerType getFertilizerType() const;
55 // NOLINTEND
56
57public:
58 // constructor thunks
59 // NOLINTBEGIN
60 MCAPI void* $ctor(::std::string const& name, int id, ::FertilizerType type);
61 // NOLINTEND
62
63public:
64 // virtual function thunks
65 // NOLINTBEGIN
66 MCAPI bool $dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar) const;
67
68 MCFOLD bool $isFertilizer() const;
69
70 MCAPI void $executeEvent(::ItemStackBase& item, ::std::string const& name, ::RenderParams& params) const;
71
72 MCAPI ::InteractionResult
73 $_useOn(::ItemStack& instance, ::Actor& entity, ::BlockPos pos, uchar face, ::Vec3 const& clickPos) const;
74
75
76 // NOLINTEND
77
78public:
79 // vftables
80 // NOLINTBEGIN
81 MCNAPI static void** $vftable();
82 // NOLINTEND
83};
Definition Actor.h:125
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition Container.h:34
static MCAPI void ** $vftable()
Definition InteractionResult.h:5
Definition ItemStackBase.h:52
Definition ItemStack.h:35
Definition RenderParams.h:30
Definition Vec3.h:10