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