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