LeviLamina
Loading...
Searching...
No Matches
LingeringPotionItem.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/PotionItem.h"
8#include "mc/world/item/alchemy/PotionType.h"
9
10// auto generated forward declare list
11// clang-format off
12class Actor;
13class BlockSource;
14class Container;
15class Item;
16class ItemStack;
17class ItemStackBase;
18class Level;
19class Player;
20class Vec3;
22namespace Bedrock::Safety { class RedactableString; }
23// clang-format on
24
26public:
27 // virtual functions
28 // NOLINTBEGIN
29 virtual ::PotionType getPotionType() const /*override*/;
30
31 virtual ::Item& setIconInfo(::std::string const& name, int id) /*override*/;
32
33 virtual void appendFormattedHovertext(
34 ::ItemStackBase const& stack,
35 ::Level& level,
37 bool showCategory
38 ) const /*override*/;
39
40 virtual ::ResolvedItemIconInfo getIconInfo(::ItemStackBase const& item, int, bool) const /*override*/;
41
42 virtual ::ItemStack& use(::ItemStack& instance, ::Player& player, ::HandSlot handSlot) const /*override*/;
43
44 virtual bool isThrowable() const /*override*/;
45
46 virtual ::Actor* createProjectileActor(
47 ::BlockSource& region,
48 ::ItemStack const& stack,
49 ::Vec3 const& pos,
50 ::Vec3 const& direction
51 ) const /*override*/;
52
53 virtual bool dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const
54 /*override*/;
55 // NOLINTEND
56
57public:
58 // virtual function thunks
59 // NOLINTBEGIN
60 MCFOLD ::PotionType $getPotionType() const;
61
62 MCAPI ::Item& $setIconInfo(::std::string const& name, int id);
63
64 MCAPI void $appendFormattedHovertext(
65 ::ItemStackBase const& stack,
66 ::Level& level,
68 bool showCategory
69 ) const;
70
71 MCAPI ::ResolvedItemIconInfo $getIconInfo(::ItemStackBase const& item, int, bool) const;
72
73 MCAPI ::ItemStack& $use(::ItemStack& instance, ::Player& player, ::HandSlot handSlot) const;
74
75 MCFOLD bool $isThrowable() const;
76
77 MCAPI ::Actor* $createProjectileActor(
78 ::BlockSource& region,
79 ::ItemStack const& stack,
80 ::Vec3 const& pos,
81 ::Vec3 const& direction
82 ) const;
83
84 MCFOLD bool $dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const;
85
86
87 // NOLINTEND
88
89public:
90 // vftables
91 // NOLINTBEGIN
92 MCAPI static void** $vftable();
93 // NOLINTEND
94};
Definition Actor.h:113
Definition RedactableString.h:10
Definition BlockSource.h:71
Definition Container.h:35
Definition ItemStackBase.h:44
Definition ItemStack.h:26
Definition Item.h:71
Definition Level.h:254
Definition LingeringPotionItem.h:25
Definition Player.h:129
Definition PotionItem.h:30
Definition Vec3.h:10
Definition ResolvedItemIconInfo.h:8