LeviLamina
Loading...
Searching...
No Matches
FishingRodItem.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/item/components/ComponentItem.h"
7
8// auto generated forward declare list
9// clang-format off
10class Actor;
11class CompoundTag;
12class Item;
13class ItemDescriptor;
14class ItemStack;
15class ItemStackBase;
16class Mob;
17class Player;
19namespace cereal { struct ReflectionCtx; }
20// clang-format on
21
22class FishingRodItem : public ::ComponentItem {
23public:
24 // prevent constructor by default
25 FishingRodItem();
26
27public:
28 // virtual functions
29 // NOLINTBEGIN
30 virtual ::ResolvedItemIconInfo
31 getIconInfo(::ItemStackBase const& item, int newAnimationFrame, bool inInventoryPane) const /*override*/;
32
33 virtual ::ItemStack& use(::ItemStack& item, ::Player& player) const /*override*/;
34
35 virtual bool isHandEquipped() const /*override*/;
36
37 virtual bool requiresInteract() const /*override*/;
38
39 virtual ::std::string getInteractText(::Player const& player) const /*override*/;
40
41 virtual int getAnimationFrameFor(::Mob* holder, bool, ::ItemStack const*, bool) const /*override*/;
42
43 virtual int getEnchantSlot() const /*override*/;
44
45 virtual int getEnchantValue() const /*override*/;
46
47 virtual void hurtActor(::ItemStack& item, ::Actor& actor, ::Mob& attacker) const /*override*/;
48
49 virtual bool shouldEmitInUseGameEvents() const /*override*/;
50
51 virtual bool shouldUseJsonForRenderMatrix() const /*override*/;
52
53 virtual ::Item& setIconInfo(::std::string const& name, int id) /*override*/;
54
55 virtual ::std::string buildDescriptionId(::ItemDescriptor const&, ::CompoundTag const*) const /*override*/;
56 // NOLINTEND
57
58public:
59 // member functions
60 // NOLINTBEGIN
61 MCAPI FishingRodItem(::std::string const& name, int id, ::cereal::ReflectionCtx& ctx);
62 // NOLINTEND
63
64public:
65 // constructor thunks
66 // NOLINTBEGIN
67 MCAPI void* $ctor(::std::string const& name, int id, ::cereal::ReflectionCtx& ctx);
68 // NOLINTEND
69
70public:
71 // virtual function thunks
72 // NOLINTBEGIN
73 MCAPI ::ResolvedItemIconInfo
74 $getIconInfo(::ItemStackBase const& item, int newAnimationFrame, bool inInventoryPane) const;
75
76 MCAPI ::ItemStack& $use(::ItemStack& item, ::Player& player) const;
77
78 MCFOLD bool $isHandEquipped() const;
79
80 MCFOLD bool $requiresInteract() const;
81
82 MCAPI ::std::string $getInteractText(::Player const& player) const;
83
84 MCAPI int $getAnimationFrameFor(::Mob* holder, bool, ::ItemStack const*, bool) const;
85
86 MCFOLD int $getEnchantSlot() const;
87
88 MCFOLD int $getEnchantValue() const;
89
90 MCFOLD void $hurtActor(::ItemStack& item, ::Actor& actor, ::Mob& attacker) const;
91
92 MCFOLD bool $shouldEmitInUseGameEvents() const;
93
94 MCFOLD bool $shouldUseJsonForRenderMatrix() const;
95
96 MCFOLD ::Item& $setIconInfo(::std::string const& name, int id);
97
98 MCAPI ::std::string $buildDescriptionId(::ItemDescriptor const&, ::CompoundTag const*) const;
99
100
101 // NOLINTEND
102
103public:
104 // vftables
105 // NOLINTBEGIN
106 MCAPI static void** $vftable();
107 // NOLINTEND
108};
Definition Actor.h:125
Definition CompoundTag.h:23
Definition ItemDescriptor.h:25
Definition ItemStackBase.h:52
Definition ItemStack.h:35
Definition Item.h:71
Definition Mob.h:57
Definition Player.h:137
Definition ResolvedItemIconInfo.h:8
Definition ReflectionCtx.h:11
Definition ctx.h:5