Skip to content
LeviMC
English
AutoLightDark
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 MCNAPI ::PotionType $getPotionType() const;
61
62 MCNAPI ::Item& $setIconInfo(::std::string const& name, int id);
63
65 ::ItemStackBase const& stack,
66 ::Level& level,
68 bool showCategory
69 ) const;
70
71 MCNAPI ::ResolvedItemIconInfo $getIconInfo(::ItemStackBase const& item, int, bool) const;
72
73 MCNAPI ::ItemStack& $use(::ItemStack& instance, ::Player& player, ::HandSlot handSlot) const;
74
75 MCNAPI bool $isThrowable() const;
76
77 MCNAPI ::Actor* $createProjectileActor(
78 ::BlockSource& region,
79 ::ItemStack const& stack,
80 ::Vec3 const& pos,
81 ::Vec3 const& direction
82 ) const;
83
84 MCNAPI 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 MCNAPI static void** $vftable();
93 // NOLINTEND
94};
Definition Actor.h:116
Definition RedactableString.h:10
Definition BlockSource.h:72
Definition Container.h:36
Definition ItemStackBase.h:45
Definition ItemStack.h:26
Definition Item.h:73
Definition Level.h:255
Definition LingeringPotionItem.h:25
MCAPI::Actor * $createProjectileActor(::BlockSource &region, ::ItemStack const &stack, ::Vec3 const &pos, ::Vec3 const &direction) const
MCAPI::ItemStack & $use(::ItemStack &instance, ::Player &player, ::HandSlot handSlot) const
MCAPI::Item & $setIconInfo(::std::string const &name, int id)
MCAPI bool $dispense(::BlockSource &region, ::Container &container, int slot, ::Vec3 const &pos, uchar face) const
static MCAPI void ** $vftable()
MCAPI bool $isThrowable() const
MCAPI::ResolvedItemIconInfo $getIconInfo(::ItemStackBase const &item, int, bool) const
MCAPI::PotionType $getPotionType() const
MCAPI void $appendFormattedHovertext(::ItemStackBase const &stack, ::Level &level, ::Bedrock::Safety::RedactableString &hovertext, bool showCategory) const
Definition Player.h:131
Definition PotionItem.h:29
Definition Vec3.h:10
Definition ResolvedItemIconInfo.h:8