Skip to content
LeviMC
English
AutoLightDark
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/HandSlot.h"
7#include "mc/world/item/Item.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class BlockSource;
13class Container;
14class ItemStack;
15class ItemStackBase;
16class Level;
17class Mob;
18class Player;
19class Vec3;
20namespace Bedrock::Safety { class RedactableString; }
21// clang-format on
22
23class TridentItem : public ::Item {
24public:
25 // virtual functions
26 // NOLINTBEGIN
27 virtual void releaseUsing(::ItemStack& item, ::Player* player, int durationLeft) const /*override*/;
28
29 virtual bool dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const
30 /*override*/;
31
32 virtual void appendFormattedHovertext(
33 ::ItemStackBase const& stack,
34 ::Level& level,
36 bool const showCategory
37 ) const /*override*/;
38
39 virtual int getEnchantSlot() const /*override*/;
40
41 virtual int getEnchantValue() const /*override*/;
42
43 virtual ::ItemStack& use(::ItemStack& instance, ::Player& player, ::HandSlot handSlot) const /*override*/;
44
45 virtual bool isThrowable() const /*override*/;
46
47 virtual void hurtActor(::ItemStack& item, ::Actor& actor, ::Mob& attacker) const /*override*/;
48
49 virtual short getMaxDamage() const /*override*/;
50
51 virtual int getAttackDamage() const /*override*/;
52
53 virtual bool canDestroyInCreative() const /*override*/;
54 // NOLINTEND
55
56public:
57 // member functions
58 // NOLINTBEGIN
59 MCNAPI ::Actor* _setupProjectile(::Actor* trident, ::ItemStack item, bool creative) const;
60 // NOLINTEND
61
62public:
63 // virtual function thunks
64 // NOLINTBEGIN
65 MCAPI void $releaseUsing(::ItemStack& item, ::Player* player, int durationLeft) const;
66
67 MCNAPI bool $dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const;
68
70 ::ItemStackBase const& stack,
71 ::Level& level,
73 bool const showCategory
74 ) const;
75
76 MCNAPI int $getEnchantSlot() const;
77
78 MCNAPI int $getEnchantValue() const;
79
80 MCNAPI ::ItemStack& $use(::ItemStack& instance, ::Player& player, ::HandSlot handSlot) const;
81
82 MCNAPI bool $isThrowable() const;
83
84 MCNAPI void $hurtActor(::ItemStack& item, ::Actor& actor, ::Mob& attacker) const;
85
86 MCNAPI short $getMaxDamage() const;
87
88 MCNAPI int $getAttackDamage() const;
89
90 MCNAPI bool $canDestroyInCreative() const;
91
92
93 // NOLINTEND
94};
Definition Actor.h:116
Definition RedactableString.h:10
Definition BlockSource.h:72
Definition Container.h:36
Definition ItemStackBase.h:45
Definition ItemStack.h:26
Definition Level.h:255
Definition Mob.h:58
Definition Player.h:131
Definition TridentItem.h:23
MCAPI int $getEnchantValue() const
MCAPI::Actor * _setupProjectile(::Actor *trident, ::ItemStack item, bool creative) const
MCAPI bool $dispense(::BlockSource &region, ::Container &container, int slot, ::Vec3 const &pos, uchar face) const
MCAPI void $appendFormattedHovertext(::ItemStackBase const &stack, ::Level &level, ::Bedrock::Safety::RedactableString &hovertext, bool const showCategory) const
MCAPI bool $canDestroyInCreative() const
MCAPI short $getMaxDamage() const
MCAPI void $hurtActor(::ItemStack &item, ::Actor &actor, ::Mob &attacker) const
MCAPI int $getAttackDamage() const
MCAPI int $getEnchantSlot() const
MCAPI bool $isThrowable() const
MCAPI::ItemStack & $use(::ItemStack &instance, ::Player &player, ::HandSlot handSlot) const
Definition Vec3.h:10