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