LeviLamina
Loading...
Searching...
No Matches
SplashPotionItem.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/item/PotionItem.h"
7#include "mc/world/item/ResolvedItemIconInfo.h"
8#include "mc/world/item/alchemy/Potion.h"
9
10// auto generated forward declare list
11// clang-format off
12class Actor;
13class BlockSource;
14class CompoundTag;
15class Container;
16class Item;
17class ItemDescriptor;
18class ItemStack;
19class ItemStackBase;
20class Level;
21class Player;
22class Vec3;
23namespace Bedrock::Safety { class RedactableString; }
24// clang-format on
25
27public:
28 // member variables
29 // NOLINTBEGIN
30 ::ll::TypedStorage<8, 1920, ::ResolvedItemIconInfo[30]> mSplashIcons;
31 ::ll::TypedStorage<4, 120, ::Potion::PotionVariant[30]> mSplashPotionVariants;
32 // NOLINTEND
33
34public:
35 // virtual functions
36 // NOLINTBEGIN
37 // vIndex: 121
38 virtual ::Potion::PotionType getPotionType() const /*override*/;
39
40 // vIndex: 107
41 virtual ::Item& setIconInfo(::std::string const& name, int index) /*override*/;
42
43 // vIndex: 87
44 virtual ::std::string
45 buildDescriptionId(::ItemDescriptor const& itemDescriptor, ::CompoundTag const* userData) const /*override*/;
46
47 // vIndex: 52
48 virtual void appendFormattedHovertext(
49 ::ItemStackBase const& stack,
50 ::Level& level,
52 bool const showCategory
53 ) const /*override*/;
54
55 // vIndex: 108
56 virtual ::ResolvedItemIconInfo
57 getIconInfo(::ItemStackBase const& item, int newAnimationFrame, bool inInventoryPane) const /*override*/;
58
59 // vIndex: 76
60 virtual ::ItemStack& use(::ItemStack& item, ::Player& player) const /*override*/;
61
62 // vIndex: 20
63 virtual bool isThrowable() const /*override*/;
64
65 // vIndex: 77
66 virtual ::Actor* createProjectileActor(
67 ::BlockSource& region,
68 ::ItemStack const& stack,
69 ::Vec3 const& pos,
70 ::Vec3 const& direction
71 ) const /*override*/;
72
73 // vIndex: 78
74 virtual bool dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const
75 /*override*/;
76
77 // vIndex: 0
78 virtual ~SplashPotionItem() /*override*/ = default;
79 // NOLINTEND
80
81public:
82 // virtual function thunks
83 // NOLINTBEGIN
84 MCFOLD ::Potion::PotionType $getPotionType() const;
85
86 MCAPI ::Item& $setIconInfo(::std::string const& name, int index);
87
88 MCAPI ::std::string
89 $buildDescriptionId(::ItemDescriptor const& itemDescriptor, ::CompoundTag const* userData) const;
90
91 MCAPI void $appendFormattedHovertext(
92 ::ItemStackBase const& stack,
93 ::Level& level,
95 bool const showCategory
96 ) const;
97
98 MCAPI ::ResolvedItemIconInfo
99 $getIconInfo(::ItemStackBase const& item, int newAnimationFrame, bool inInventoryPane) const;
100
101 MCAPI ::ItemStack& $use(::ItemStack& item, ::Player& player) const;
102
103 MCFOLD bool $isThrowable() const;
104
105 MCAPI ::Actor* $createProjectileActor(
106 ::BlockSource& region,
107 ::ItemStack const& stack,
108 ::Vec3 const& pos,
109 ::Vec3 const& direction
110 ) const;
111
112 MCAPI bool $dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const;
113 // NOLINTEND
114
115public:
116 // vftables
117 // NOLINTBEGIN
118 MCNAPI static void** $vftable();
119 // NOLINTEND
120};
Definition Actor.h:103
Definition RedactableString.h:10
Definition BlockSource.h:67
Definition CompoundTag.h:13
Definition Container.h:30
Definition ItemDescriptor.h:22
Definition ItemStackBase.h:35
Definition ItemStack.h:25
Definition Item.h:65
Definition Level.h:238
Definition Player.h:119
Definition PotionItem.h:29
Definition SplashPotionItem.h:26
static MCAPI void ** $vftable()
Definition Vec3.h:10