Skip to content
LeviMC
English
AutoLightDark
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 MCNAPI static ::ItemInstance const& initFireworksRocketItem(
57 ::ItemInstance& itemInstance,
58 ::std::vector<::ItemInstance> const& charges,
59 int sulphurCount
60 );
61
62 MCNAPI static ::ItemStack const&
63 initFireworksRocketItem(::ItemStack& item, ::std::vector<::ItemStack> const& charges, int sulphurCount);
64 // NOLINTEND
65
66public:
67 // static variables
68 // NOLINTBEGIN
69 MCNAPI static ::std::string const& TAG_EXPLOSIONS();
70
71 MCNAPI static ::std::string const& TAG_E_FLIGHT();
72
73 MCNAPI static ::std::string const& TAG_FIREWORKS();
74 // NOLINTEND
75
76public:
77 // virtual function thunks
78 // NOLINTBEGIN
79 MCNAPI ::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 MCNAPI bool $dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const;
91
93 ::ItemStackBase const& stack,
94 ::Level& level,
96 bool const advancedToolTips
97 ) const;
98
99 MCNAPI bool $isDestructive(int) const;
100
101
102 // NOLINTEND
103
104public:
105 // vftables
106 // NOLINTBEGIN
107 MCNAPI static void** $vftable();
108 // NOLINTEND
109};
Definition Actor.h:116
Definition RedactableString.h:10
Definition BlockPos.h:14
Definition BlockSource.h:72
Definition Container.h:36
Definition FireworksItem.h:25
static MCAPI void ** $vftable()
MCAPI bool $dispense(::BlockSource &region, ::Container &container, int slot, ::Vec3 const &pos, uchar face) const
MCAPI bool $isDestructive(int) const
static MCAPI ::std::string const & TAG_FIREWORKS()
MCAPI::InteractionResult $_useOn(::ItemStack &instance, ::Actor &entity, ::BlockPos pos, uchar face, ::HandSlot handSlot, ::Vec3 const &clickPos) const
static MCAPI ::std::string const & TAG_EXPLOSIONS()
MCAPI void $appendFormattedHovertext(::ItemStackBase const &stack, ::Level &level, ::Bedrock::Safety::RedactableString &hovertext, bool const advancedToolTips) const
static MCAPI ::ItemInstance const & initFireworksRocketItem(::ItemInstance &itemInstance, ::std::vector<::ItemInstance > const &charges, int sulphurCount)
static MCAPI ::ItemStack const & initFireworksRocketItem(::ItemStack &item, ::std::vector<::ItemStack > const &charges, int sulphurCount)
static MCAPI ::std::string const & TAG_E_FLIGHT()
Definition InteractionResult.h:5
Definition ItemInstance.h:15
Definition ItemStackBase.h:45
Definition ItemStack.h:26
Definition Level.h:255
Definition Player.h:131
Definition Vec3.h:10