Skip to content
LeviMC
English
AutoLightDark
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 MCNAPI FishingRodItem(::std::string const& name, int id, ::cereal::ReflectionCtx& ctx);
63 // NOLINTEND
64
65public:
66 // constructor thunks
67 // NOLINTBEGIN
68 MCNAPI void* $ctor(::std::string const& name, int id, ::cereal::ReflectionCtx& ctx);
69 // NOLINTEND
70
71public:
72 // virtual function thunks
73 // NOLINTBEGIN
74 MCNAPI ::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 MCNAPI bool $isHandEquipped() const;
80
81 MCNAPI bool $requiresInteract() const;
82
83 MCNAPI ::std::string $getInteractText(::Player const& player) const;
84
85 MCNAPI int $getAnimationFrameFor(::Mob* holder, bool, ::ItemStack const*, bool) const;
86
87 MCNAPI int $getEnchantSlot() const;
88
89 MCNAPI int $getEnchantValue() const;
90
91 MCNAPI void $hurtActor(::ItemStack& item, ::Actor& actor, ::Mob& attacker) const;
92
93 MCNAPI bool $shouldEmitInUseGameEvents() const;
94
95 MCNAPI bool $shouldUseJsonForRenderMatrix() const;
96
97 MCNAPI ::Item& $setIconInfo(::std::string const& name, int id);
98
99 MCNAPI ::std::string $buildDescriptionId(::ItemDescriptor const&, ::CompoundTag const*) const;
100
101
102 // NOLINTEND
103};
Definition Actor.h:116
Definition CompoundTag.h:18
MCAPI FishingRodItem(::std::string const &name, int id, ::cereal::ReflectionCtx &ctx)
MCAPI::std::string $getInteractText(::Player const &player) const
MCAPI void * $ctor(::std::string const &name, int id, ::cereal::ReflectionCtx &ctx)
MCAPI::std::string $buildDescriptionId(::ItemDescriptor const &, ::CompoundTag const *) const
MCAPI bool $requiresInteract() const
MCAPI int $getAnimationFrameFor(::Mob *holder, bool, ::ItemStack const *, bool) const
MCAPI bool $shouldUseJsonForRenderMatrix() const
MCAPI void $hurtActor(::ItemStack &item, ::Actor &actor, ::Mob &attacker) const
MCAPI int $getEnchantSlot() const
MCAPI bool $shouldEmitInUseGameEvents() const
MCAPI::Item & $setIconInfo(::std::string const &name, int id)
MCAPI int $getEnchantValue() const
MCAPI::ResolvedItemIconInfo $getIconInfo(::ItemStackBase const &item, int newAnimationFrame, bool inInventoryPane) const
MCAPI bool $isHandEquipped() const
Definition ItemDescriptor.h:24
Definition ItemStackBase.h:45
Definition ItemStack.h:26
Definition Item.h:73
Definition Mob.h:58
Definition Player.h:131
Definition ResolvedItemIconInfo.h:8
Definition ReflectionCtx.h:11
Definition ctx.h:5