LeviLamina
Loading...
Searching...
No Matches
FireworksItem.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 BlockPos;
13class BlockSource;
14class Container;
16class ItemInstance;
17class ItemStack;
18class ItemStackBase;
19class Level;
20class Player;
21class Vec3;
22namespace Bedrock::Safety { class RedactableString; }
23// clang-format on
24
25class FireworksItem : public ::Item {
26public:
27 // virtual functions
28 // NOLINTBEGIN
29 virtual ::InteractionResult _useOn(
30 ::ItemStack& instance,
31 ::Actor& entity,
32 ::BlockPos pos,
33 uchar face,
34 ::HandSlot handSlot,
35 ::Vec3 const& clickPos
36 ) const /*override*/;
37
38 virtual ::ItemStack& use(::ItemStack& item, ::Player& player, ::HandSlot handSlot) const /*override*/;
39
40 virtual bool dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const
41 /*override*/;
42
43 virtual void appendFormattedHovertext(
44 ::ItemStackBase const& stack,
45 ::Level& level,
47 bool const advancedToolTips
48 ) const /*override*/;
49
50 virtual bool isDestructive(int) const /*override*/;
51 // NOLINTEND
52
53public:
54 // static functions
55 // NOLINTBEGIN
56 MCAPI static ::ItemInstance const& initFireworksRocketItem(
57 ::ItemInstance& itemInstance,
58 ::std::vector<::ItemInstance> const& charges,
59 int sulphurCount
60 );
61
62 MCAPI static ::ItemStack const&
63 initFireworksRocketItem(::ItemStack& item, ::std::vector<::ItemStack> const& charges, int sulphurCount);
64 // NOLINTEND
65
66public:
67 // static variables
68 // NOLINTBEGIN
69 MCAPI static ::std::string const& TAG_EXPLOSIONS();
70
71 MCAPI static ::std::string const& TAG_E_FLIGHT();
72
73 MCAPI static ::std::string const& TAG_FIREWORKS();
74 // NOLINTEND
75
76public:
77 // virtual function thunks
78 // NOLINTBEGIN
79 MCAPI ::InteractionResult $_useOn(
80 ::ItemStack& instance,
81 ::Actor& entity,
82 ::BlockPos pos,
83 uchar face,
84 ::HandSlot handSlot,
85 ::Vec3 const& clickPos
86 ) const;
87
88 MCAPI ::ItemStack& $use(::ItemStack& item, ::Player& player, ::HandSlot handSlot) const;
89
90 MCAPI bool $dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const;
91
92 MCAPI void $appendFormattedHovertext(
93 ::ItemStackBase const& stack,
94 ::Level& level,
96 bool const advancedToolTips
97 ) const;
98
99 MCFOLD bool $isDestructive(int) const;
100
101
102 // NOLINTEND
103
104public:
105 // vftables
106 // NOLINTBEGIN
107 MCAPI static void** $vftable();
108 // NOLINTEND
109};
Definition Actor.h:113
Definition RedactableString.h:10
Definition BlockPos.h:17
Definition BlockSource.h:71
Definition Container.h:35
Definition FireworksItem.h:25
Definition InteractionResult.h:5
Definition ItemInstance.h:15
Definition ItemStackBase.h:44
Definition ItemStack.h:26
Definition Level.h:254
Definition Player.h:129
Definition Vec3.h:10