LeviLamina
Loading...
Searching...
No Matches
TridentItem.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/item/Item.h"
7
8// auto generated forward declare list
9// clang-format off
10class Actor;
11class BlockSource;
12class Container;
13class ItemStack;
14class ItemStackBase;
15class Level;
16class Mob;
17class Player;
18class Vec3;
19namespace Bedrock::Safety { class RedactableString; }
20// clang-format on
21
22class TridentItem : public ::Item {
23public:
24 // virtual functions
25 // NOLINTBEGIN
26 // vIndex: 80
27 virtual void releaseUsing(::ItemStack& item, ::Player* player, int durationLeft) const /*override*/;
28
29 // vIndex: 78
30 virtual bool dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const
31 /*override*/;
32
33 // vIndex: 52
34 virtual void appendFormattedHovertext(
35 ::ItemStackBase const& stack,
36 ::Level& level,
38 bool const showCategory
39 ) const /*override*/;
40
41 // vIndex: 54
42 virtual int getEnchantSlot() const /*override*/;
43
44 // vIndex: 55
45 virtual int getEnchantValue() const /*override*/;
46
47 // vIndex: 76
48 virtual ::ItemStack& use(::ItemStack& instance, ::Player& player) const /*override*/;
49
50 // vIndex: 20
51 virtual bool isThrowable() const /*override*/;
52
53 // vIndex: 82
54 virtual void hurtActor(::ItemStack& item, ::Actor& actor, ::Mob& attacker) const /*override*/;
55
56 // vIndex: 35
57 virtual short getMaxDamage() const /*override*/;
58
59 // vIndex: 36
60 virtual int getAttackDamage() const /*override*/;
61
62 // vIndex: 46
63 virtual bool canDestroyInCreative() const /*override*/;
64
65 // vIndex: 0
66 virtual ~TridentItem() /*override*/ = default;
67 // NOLINTEND
68
69public:
70 // member functions
71 // NOLINTBEGIN
72 MCAPI ::Actor* _setupProjectile(::Actor* trident, ::ItemStack item, bool creative) const;
73 // NOLINTEND
74
75public:
76 // static variables
77 // NOLINTBEGIN
78 MCAPI static int const& CHARGE_THRESHOLD_TIME();
79
80 MCAPI static int const& THROW_THRESHOLD_TIME();
81 // NOLINTEND
82
83public:
84 // destructor thunk
85 // NOLINTBEGIN
86
87 // NOLINTEND
88
89public:
90 // virtual function thunks
91 // NOLINTBEGIN
92 MCAPI void $releaseUsing(::ItemStack& item, ::Player* player, int durationLeft) const;
93
94 MCAPI bool $dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const;
95
96 MCAPI void $appendFormattedHovertext(
97 ::ItemStackBase const& stack,
98 ::Level& level,
100 bool const showCategory
101 ) const;
102
103 MCAPI int $getEnchantSlot() const;
104
105 MCFOLD int $getEnchantValue() const;
106
107 MCAPI ::ItemStack& $use(::ItemStack& instance, ::Player& player) const;
108
109 MCFOLD bool $isThrowable() const;
110
111 MCFOLD void $hurtActor(::ItemStack& item, ::Actor& actor, ::Mob& attacker) const;
112
113 MCFOLD short $getMaxDamage() const;
114
115 MCFOLD int $getAttackDamage() const;
116
117 MCFOLD bool $canDestroyInCreative() const;
118 // NOLINTEND
119
120public:
121 // vftables
122 // NOLINTBEGIN
123 MCAPI static void** $vftable();
124 // NOLINTEND
125};
Definition Actor.h:104
Definition RedactableString.h:10
Definition BlockSource.h:67
Definition Container.h:30
Definition ItemStackBase.h:35
Definition ItemStack.h:25
Definition Item.h:65
Definition Level.h:234
Definition Mob.h:47
Definition Player.h:119
Definition TridentItem.h:22
Definition Vec3.h:10