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 virtual void releaseUsing(::ItemStack& item, ::Player* player, int durationLeft) const /*override*/;
27
28 virtual bool dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const
29 /*override*/;
30
31 virtual void appendFormattedHovertext(
32 ::ItemStackBase const& stack,
33 ::Level& level,
35 bool const showCategory
36 ) const /*override*/;
37
38 virtual int getEnchantSlot() const /*override*/;
39
40 virtual int getEnchantValue() const /*override*/;
41
42 virtual ::ItemStack& use(::ItemStack& instance, ::Player& player) const /*override*/;
43
44 virtual bool isThrowable() const /*override*/;
45
46 virtual void hurtActor(::ItemStack& item, ::Actor& actor, ::Mob& attacker) const /*override*/;
47
48 virtual short getMaxDamage() const /*override*/;
49
50 virtual int getAttackDamage() const /*override*/;
51
52 virtual bool canDestroyInCreative() const /*override*/;
53 // NOLINTEND
54
55public:
56 // member functions
57 // NOLINTBEGIN
58 MCAPI ::Actor* _setupProjectile(::Actor* trident, ::ItemStack item, bool creative) const;
59 // NOLINTEND
60
61public:
62 // static variables
63 // NOLINTBEGIN
64 MCAPI static int const& CHARGE_THRESHOLD_TIME();
65
66 MCAPI static int const& THROW_THRESHOLD_TIME();
67 // NOLINTEND
68
69public:
70 // virtual function thunks
71 // NOLINTBEGIN
72 MCAPI void $releaseUsing(::ItemStack& item, ::Player* player, int durationLeft) const;
73
74 MCAPI bool $dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const;
75
76 MCAPI void $appendFormattedHovertext(
77 ::ItemStackBase const& stack,
78 ::Level& level,
80 bool const showCategory
81 ) const;
82
83 MCAPI int $getEnchantSlot() const;
84
85 MCFOLD int $getEnchantValue() const;
86
87 MCAPI ::ItemStack& $use(::ItemStack& instance, ::Player& player) const;
88
89 MCFOLD bool $isThrowable() const;
90
91 MCFOLD void $hurtActor(::ItemStack& item, ::Actor& actor, ::Mob& attacker) const;
92
93 MCFOLD short $getMaxDamage() const;
94
95 MCFOLD int $getAttackDamage() const;
96
97 MCFOLD bool $canDestroyInCreative() const;
98
99
100 // NOLINTEND
101
102public:
103 // vftables
104 // NOLINTBEGIN
105 MCAPI static void** $vftable();
106 // NOLINTEND
107};
Definition Actor.h:125
Definition RedactableString.h:10
Definition BlockSource.h:73
Definition Container.h:34
Definition ItemStackBase.h:52
Definition ItemStack.h:35
Definition Level.h:255
Definition Mob.h:57
Definition Player.h:137
Definition TridentItem.h:22
Definition Vec3.h:10