LeviLamina
Loading...
Searching...
No Matches
ChemistryStickItem.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/item/ChemistryItem.h"
7#include "mc/world/item/ItemColor.h"
8#include "mc/world/item/ItemUseMethod.h"
9
10// auto generated forward declare list
11// clang-format off
12class Actor;
13class BaseGameVersion;
14class Item;
15class ItemStack;
16class ItemStackBase;
17class Level;
18class Mob;
19class Player;
20// clang-format on
21
22class ChemistryStickItem : public ::ChemistryItem {
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<4, 4, int> mMaxActiveTime;
27 // NOLINTEND
28
29public:
30 // prevent constructor by default
31 ChemistryStickItem();
32
33public:
34 // virtual functions
35 // NOLINTBEGIN
36 virtual ::ItemStack& use(::ItemStack& item, ::Player& player) const /*override*/;
37
38 virtual ::ItemUseMethod useTimeDepleted(::ItemStack& inoutInstance, ::Level* level, ::Player* player) const
39 /*override*/;
40
41 virtual bool uniqueAuxValues() const /*override*/;
42
43 virtual bool inventoryTick(::ItemStack& item, ::Level& level, ::Actor& owner, int slot, bool selected) const
44 /*override*/;
45
46 virtual ::Item& setMaxDamage(int maxDamage) /*override*/;
47
48 virtual void hurtActor(::ItemStack& item, ::Actor& actor, ::Mob& attacker) const /*override*/;
49
50 virtual bool isValidRepairItem(::ItemStackBase const&, ::ItemStackBase const&, ::BaseGameVersion const&) const
51 /*override*/;
52
53 virtual bool showsDurabilityInCreative() const /*override*/;
54
55 virtual void fixupCommon(::ItemStackBase& stack) const /*override*/;
56 // NOLINTEND
57
58public:
59 // member functions
60 // NOLINTBEGIN
61 MCAPI ChemistryStickItem(::std::string const& name, short id);
62
63 MCAPI ::std::string _getColorName(int data) const;
64
65 MCAPI void _storeActivationTimestamp(::ItemStack& item, uint64 curTime, int desiredPercent) const;
66
67 MCAPI bool _tick(::ItemStack& item, uint64 curTime) const;
68 // NOLINTEND
69
70public:
71 // static functions
72 // NOLINTBEGIN
73 MCAPI static ::ItemColor getColorType(int data);
74
75 MCAPI static bool isActive(int data);
76
77 MCAPI static bool isChemistryStick(::ItemStackBase const& item);
78 // NOLINTEND
79
80public:
81 // static variables
82 // NOLINTBEGIN
83 MCAPI static ::std::string const& ACTIVATION_TIMESTAMP_TAG();
84 // NOLINTEND
85
86public:
87 // constructor thunks
88 // NOLINTBEGIN
89 MCAPI void* $ctor(::std::string const& name, short id);
90 // NOLINTEND
91
92public:
93 // virtual function thunks
94 // NOLINTBEGIN
95 MCAPI ::ItemStack& $use(::ItemStack& item, ::Player& player) const;
96
97 MCAPI ::ItemUseMethod $useTimeDepleted(::ItemStack& inoutInstance, ::Level* level, ::Player* player) const;
98
99 MCFOLD bool $uniqueAuxValues() const;
100
101 MCAPI bool $inventoryTick(::ItemStack& item, ::Level& level, ::Actor& owner, int slot, bool selected) const;
102
103 MCAPI ::Item& $setMaxDamage(int maxDamage);
104
105 MCFOLD void $hurtActor(::ItemStack& item, ::Actor& actor, ::Mob& attacker) const;
106
107 MCFOLD bool $isValidRepairItem(::ItemStackBase const&, ::ItemStackBase const&, ::BaseGameVersion const&) const;
108
109 MCFOLD bool $showsDurabilityInCreative() const;
110
111 MCAPI void $fixupCommon(::ItemStackBase& stack) const;
112
113
114 // NOLINTEND
115
116public:
117 // vftables
118 // NOLINTBEGIN
119 MCNAPI static void** $vftable();
120 // NOLINTEND
121};
Definition Actor.h:125
Definition BaseGameVersion.h:13
Definition ChemistryItem.h:13
static MCAPI void ** $vftable()
Definition ItemStackBase.h:52
Definition ItemStack.h:35
Definition Item.h:71
Definition Level.h:255
Definition Mob.h:57
Definition Player.h:137