LeviLamina
Loading...
Searching...
No Matches
EggItem.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 BlockSource;
12class Container;
13class ItemStack;
14class Player;
15class Vec3;
16// clang-format on
17
18class EggItem : public ::Item {
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<8, 32, ::std::string> mInitEvent;
23 // NOLINTEND
24
25public:
26 // prevent constructor by default
27 EggItem();
28
29public:
30 // virtual functions
31 // NOLINTBEGIN
32 virtual ::ItemStack& use(::ItemStack& item, ::Player& player) const /*override*/;
33
34 virtual bool isThrowable() const /*override*/;
35
36 virtual ::Actor*
37 createProjectileActor(::BlockSource& region, ::ItemStack const&, ::Vec3 const& pos, ::Vec3 const& direction) const
38 /*override*/;
39
40 virtual bool dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const
41 /*override*/;
42
43 virtual ~EggItem() /*override*/ = default;
44 // NOLINTEND
45
46public:
47 // member functions
48 // NOLINTBEGIN
49 MCAPI EggItem(::std::string const& name, int id, ::std::string initEvent);
50 // NOLINTEND
51
52public:
53 // constructor thunks
54 // NOLINTBEGIN
55 MCAPI void* $ctor(::std::string const& name, int id, ::std::string initEvent);
56 // NOLINTEND
57
58public:
59 // virtual function thunks
60 // NOLINTBEGIN
61 MCAPI ::ItemStack& $use(::ItemStack& item, ::Player& player) const;
62
63 MCFOLD bool $isThrowable() const;
64
65 MCAPI ::Actor*
66 $createProjectileActor(::BlockSource& region, ::ItemStack const&, ::Vec3 const& pos, ::Vec3 const& direction) const;
67
68 MCAPI bool $dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const;
69
70
71 // NOLINTEND
72
73public:
74 // vftables
75 // NOLINTBEGIN
76 MCAPI static void** $vftable();
77 // NOLINTEND
78};
Definition Actor.h:105
Definition BlockSource.h:68
Definition Container.h:33
Definition ItemStack.h:26
Definition Player.h:125
Definition Vec3.h:10