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& item, ::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 // virtual function thunks
85 // NOLINTBEGIN
86 MCAPI void $releaseUsing(::ItemStack& item, ::Player* player, int durationLeft) const;
87
88 MCAPI bool $dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const;
89
90 MCAPI void $appendFormattedHovertext(
91 ::ItemStackBase const& stack,
92 ::Level& level,
94 bool const showCategory
95 ) const;
96
97 MCAPI int $getEnchantSlot() const;
98
99 MCFOLD int $getEnchantValue() const;
100
101 MCAPI ::ItemStack& $use(::ItemStack& item, ::Player& player) const;
102
103 MCFOLD bool $isThrowable() const;
104
105 MCFOLD void $hurtActor(::ItemStack& item, ::Actor& actor, ::Mob& attacker) const;
106
107 MCFOLD short $getMaxDamage() const;
108
109 MCFOLD int $getAttackDamage() const;
110
111 MCFOLD bool $canDestroyInCreative() const;
112 // NOLINTEND
113
114public:
115 // vftables
116 // NOLINTBEGIN
117 MCNAPI static void** $vftable();
118 // NOLINTEND
119};
Definition Actor.h:103
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:238
Definition Mob.h:47
Definition Player.h:119
Definition TridentItem.h:22
static MCAPI void ** $vftable()
Definition Vec3.h:10