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/alchemy/Potion.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class BlockSource;
13class CompoundTag;
14class Container;
15class Item;
16class ItemDescriptor;
17class ItemStack;
18class ItemStackBase;
19class Level;
20class Player;
21class 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& instance, ::Player& player) const /*override*/;
61
62 // vIndex: 20
63 virtual bool isThrowable() const /*override*/;
64
65 // vIndex: 77
66 virtual ::Actor*
67 createProjectileActor(::BlockSource& region, ::ItemStack const& stack, ::Vec3 const& pos, ::Vec3 const& direction)
68 const /*override*/;
69
70 // vIndex: 78
71 virtual bool dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const
72 /*override*/;
73
74 // vIndex: 0
75 virtual ~SplashPotionItem() /*override*/ = default;
76 // NOLINTEND
77
78public:
79 // destructor thunk
80 // NOLINTBEGIN
81
82 // NOLINTEND
83
84public:
85 // virtual function thunks
86 // NOLINTBEGIN
87 MCFOLD ::Potion::PotionType $getPotionType() const;
88
89 MCAPI ::Item& $setIconInfo(::std::string const& name, int index);
90
91 MCAPI ::std::string
92 $buildDescriptionId(::ItemDescriptor const& itemDescriptor, ::CompoundTag const* userData) const;
93
94 MCAPI void $appendFormattedHovertext(
95 ::ItemStackBase const& stack,
96 ::Level& level,
98 bool const showCategory
99 ) const;
100
101 MCAPI ::ResolvedItemIconInfo
102 $getIconInfo(::ItemStackBase const& item, int newAnimationFrame, bool inInventoryPane) const;
103
104 MCAPI ::ItemStack& $use(::ItemStack& instance, ::Player& player) const;
105
106 MCFOLD bool $isThrowable() const;
107
108 MCAPI ::Actor*
109 $createProjectileActor(::BlockSource& region, ::ItemStack const& stack, ::Vec3 const& pos, ::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 MCAPI static void** $vftable();
119 // NOLINTEND
120};
Definition Actor.h:104
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:234
Definition Player.h:119
Definition PotionItem.h:29
Definition SplashPotionItem.h:26
Definition Vec3.h:10
Definition ResolvedItemIconInfo.h:8