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/ItemUseMethod.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class BaseGameVersion;
13class Item;
14class ItemStack;
15class ItemStackBase;
16class Level;
17class Mob;
18class Player;
19// clang-format on
20
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<4, 4, int> mMaxActiveTime;
26 // NOLINTEND
27
28public:
29 // virtual functions
30 // NOLINTBEGIN
31 virtual ::ItemStack& use(::ItemStack& item, ::Player& player) const /*override*/;
32
33 virtual ::ItemUseMethod useTimeDepleted(::ItemStack& inoutInstance, ::Level* level, ::Player* player) const
34 /*override*/;
35
36 virtual bool uniqueAuxValues() const /*override*/;
37
38 virtual bool inventoryTick(::ItemStack& item, ::Level& level, ::Actor& owner, int slot, bool selected) const
39 /*override*/;
40
41 virtual ::Item& setMaxDamage(int maxDamage) /*override*/;
42
43 virtual void hurtActor(::ItemStack& instance, ::Actor& actor, ::Mob& attacker) const /*override*/;
44
45 virtual bool isValidRepairItem(
46 ::ItemStackBase const& source,
47 ::ItemStackBase const& repairItem,
48 ::BaseGameVersion const& baseGameVersion
49 ) const /*override*/;
50
51 virtual bool showsDurabilityInCreative() const /*override*/;
52
53 virtual void fixupCommon(::ItemStackBase& stack) const /*override*/;
54
55 virtual ~ChemistryStickItem() /*override*/ = default;
56 // NOLINTEND
57
58public:
59 // member functions
60 // NOLINTBEGIN
61 MCAPI void _storeActivationTimestamp(::ItemStack& item, uint64 curTime, int desiredPercent) const;
62
63 MCAPI bool _tick(::ItemStack& item, uint64 curTime) const;
64 // NOLINTEND
65
66public:
67 // static functions
68 // NOLINTBEGIN
69 MCAPI static bool isChemistryStick(::ItemStackBase const& item);
70 // NOLINTEND
71
72public:
73 // static variables
74 // NOLINTBEGIN
75 MCAPI static ::std::string const& ACTIVATION_TIMESTAMP_TAG();
76 // NOLINTEND
77
78public:
79 // virtual function thunks
80 // NOLINTBEGIN
81 MCAPI ::ItemStack& $use(::ItemStack& item, ::Player& player) const;
82
83 MCAPI ::ItemUseMethod $useTimeDepleted(::ItemStack& inoutInstance, ::Level* level, ::Player* player) const;
84
85 MCFOLD bool $uniqueAuxValues() const;
86
87 MCAPI bool $inventoryTick(::ItemStack& item, ::Level& level, ::Actor& owner, int slot, bool selected) const;
88
89 MCAPI ::Item& $setMaxDamage(int maxDamage);
90
91 MCFOLD void $hurtActor(::ItemStack& instance, ::Actor& actor, ::Mob& attacker) const;
92
93 MCFOLD bool $isValidRepairItem(
94 ::ItemStackBase const& source,
95 ::ItemStackBase const& repairItem,
96 ::BaseGameVersion const& baseGameVersion
97 ) const;
98
99 MCFOLD bool $showsDurabilityInCreative() const;
100
101 MCAPI void $fixupCommon(::ItemStackBase& stack) const;
102
103
104 // NOLINTEND
105};
Definition Actor.h:105
Definition BaseGameVersion.h:8
Definition ChemistryItem.h:13
Definition ChemistryStickItem.h:21
Definition ItemStackBase.h:44
Definition ItemStack.h:26
Definition Item.h:69
Definition Level.h:249
Definition Mob.h:50
Definition Player.h:125