Skip to content
LeviMC
English
AutoLightDark
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/HandSlot.h"
8#include "mc/world/item/Item.h"
9
10// auto generated forward declare list
11// clang-format off
12class Actor;
13class BlockPos;
14class BlockSource;
15class Container;
17class ItemStack;
18class ItemStackBase;
19class RenderParams;
20class Vec3;
21// clang-format on
22
23class FertilizerItem : public ::Item {
24public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<1, 1, ::FertilizerType> mType;
28 ::ll::TypedStorage<1, 1, bool> mIsChemistryEnabled;
29 // NOLINTEND
30
31public:
32 // virtual functions
33 // NOLINTBEGIN
34 virtual bool dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar) const
35 /*override*/;
36
37 virtual bool isFertilizer() const /*override*/;
38
39 virtual void
40 executeEvent(::ItemStackBase& item, ::std::string const& name, ::HandSlot handSlot, ::RenderParams& params) const
41 /*override*/;
42
43 virtual ::InteractionResult _useOn(
44 ::ItemStack& instance,
45 ::Actor& entity,
46 ::BlockPos pos,
47 uchar face,
48 ::HandSlot handSlot,
49 ::Vec3 const& clickPos
50 ) const /*override*/;
51 // NOLINTEND
52
53public:
54 // virtual function thunks
55 // NOLINTBEGIN
56 MCAPI bool $dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar) const;
57
58 MCNAPI bool $isFertilizer() const;
59
60 MCNAPI void
61 $executeEvent(::ItemStackBase& item, ::std::string const& name, ::HandSlot handSlot, ::RenderParams& params) const;
62
63 MCAPI ::InteractionResult $_useOn(
64 ::ItemStack& instance,
65 ::Actor& entity,
66 ::BlockPos pos,
67 uchar face,
68 ::HandSlot handSlot,
69 ::Vec3 const& clickPos
70 ) const;
71
72
73 // NOLINTEND
74};
Definition Actor.h:116
Definition BlockPos.h:14
Definition BlockSource.h:72
Definition Container.h:36
Definition FertilizerItem.h:23
MCAPI void $executeEvent(::ItemStackBase &item, ::std::string const &name, ::HandSlot handSlot, ::RenderParams &params) const
MCAPI bool $isFertilizer() const
Definition InteractionResult.h:5
Definition ItemStackBase.h:45
Definition ItemStack.h:26
Definition RenderParams.h:29
Definition Vec3.h:10