LeviLamina
Loading...
Searching...
No Matches
BottleItem.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/item/Item.h"
7
8// auto generated forward declare list
9// clang-format off
10class Actor;
11class BlockPos;
12class BlockSource;
13class Container;
15class ItemStack;
16class Vec3;
17// clang-format on
18
19class BottleItem : public ::Item {
20public:
21 // prevent constructor by default
22 BottleItem();
23
24public:
25 // virtual functions
26 // NOLINTBEGIN
27 virtual bool dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const
28 /*override*/;
29
30 virtual bool isLiquidClipItem() const /*override*/;
31
32 virtual ::InteractionResult
33 _useOn(::ItemStack& instance, ::Actor& entity, ::BlockPos pos, uchar face, ::Vec3 const& clickPos) const
34 /*override*/;
35 // NOLINTEND
36
37public:
38 // member functions
39 // NOLINTBEGIN
40 MCAPI BottleItem(::std::string const& name, int id);
41
42 MCAPI void _createBottledItem(::Actor& entity, ::ItemStack& instance, ::std::string_view itemToCreate) const;
43
44 MCAPI void _fillBottleViaDispenser(
45 ::BlockSource& region,
46 ::std::string_view bottledItem,
47 ::Container& container,
48 int slot,
49 ::Vec3 const& pos,
50 uchar face
51 ) const;
52 // NOLINTEND
53
54public:
55 // constructor thunks
56 // NOLINTBEGIN
57 MCAPI void* $ctor(::std::string const& name, int id);
58 // NOLINTEND
59
60public:
61 // virtual function thunks
62 // NOLINTBEGIN
63 MCAPI bool $dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const;
64
65 MCFOLD bool $isLiquidClipItem() const;
66
67 MCAPI ::InteractionResult
68 $_useOn(::ItemStack& instance, ::Actor& entity, ::BlockPos pos, uchar face, ::Vec3 const& clickPos) const;
69
70
71 // NOLINTEND
72
73public:
74 // vftables
75 // NOLINTBEGIN
76 MCAPI static void** $vftable();
77 // NOLINTEND
78};
Definition Actor.h:125
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition Container.h:34
Definition InteractionResult.h:5
Definition ItemStack.h:35
Definition Vec3.h:10