LeviLamina
Loading...
Searching...
No Matches
SnowballItem.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/item/components/ComponentItem.h"
7
8// auto generated forward declare list
9// clang-format off
10class Actor;
11class BlockSource;
12class CompoundTag;
13class Container;
14class Item;
15class ItemDescriptor;
16class ItemStack;
17class ItemStackBase;
18class Vec3;
20namespace cereal { struct ReflectionCtx; }
21// clang-format on
22
23class SnowballItem : public ::ComponentItem {
24public:
25 // prevent constructor by default
26 SnowballItem();
27
28public:
29 // virtual functions
30 // NOLINTBEGIN
31 virtual ::Item& setIconInfo(::std::string const& name, int index) /*override*/;
32
33 virtual ::ResolvedItemIconInfo
34 getIconInfo(::ItemStackBase const& item, int newAnimationFrame, bool inInventoryPane) const /*override*/;
35
36 virtual ::std::string
37 buildDescriptionId(::ItemDescriptor const& itemDescriptor, ::CompoundTag const* userData) const /*override*/;
38
39 virtual ::SnowballItem& setDescriptionId(::std::string const& descriptionId) /*override*/;
40
41 virtual ::Actor*
42 createProjectileActor(::BlockSource& region, ::ItemStack const&, ::Vec3 const& pos, ::Vec3 const& direction) const
43 /*override*/;
44
45 virtual bool dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const
46 /*override*/;
47
48 virtual ~SnowballItem() /*override*/ = default;
49 // NOLINTEND
50
51public:
52 // member functions
53 // NOLINTBEGIN
54 MCAPI SnowballItem(::std::string const& name, int id, ::cereal::ReflectionCtx& ctx);
55 // NOLINTEND
56
57public:
58 // constructor thunks
59 // NOLINTBEGIN
60 MCAPI void* $ctor(::std::string const& name, int id, ::cereal::ReflectionCtx& ctx);
61 // NOLINTEND
62
63public:
64 // virtual function thunks
65 // NOLINTBEGIN
66 MCFOLD ::Item& $setIconInfo(::std::string const& name, int index);
67
68 MCFOLD ::ResolvedItemIconInfo
69 $getIconInfo(::ItemStackBase const& item, int newAnimationFrame, bool inInventoryPane) const;
70
71 MCFOLD ::std::string
72 $buildDescriptionId(::ItemDescriptor const& itemDescriptor, ::CompoundTag const* userData) const;
73
74 MCFOLD ::SnowballItem& $setDescriptionId(::std::string const& descriptionId);
75
76 MCAPI ::Actor*
77 $createProjectileActor(::BlockSource& region, ::ItemStack const&, ::Vec3 const& pos, ::Vec3 const& direction) const;
78
79 MCAPI bool $dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const;
80
81
82 // NOLINTEND
83
84public:
85 // vftables
86 // NOLINTBEGIN
87 MCAPI static void** $vftable();
88 // NOLINTEND
89};
Definition Actor.h:105
Definition BlockSource.h:68
static MCAPI void ** $vftable()
Definition CompoundTag.h:23
Definition Container.h:33
Definition ItemDescriptor.h:23
Definition ItemStackBase.h:44
Definition ItemStack.h:26
Definition Item.h:69
Definition Vec3.h:10
Definition ResolvedItemIconInfo.h:8
Definition ReflectionCtx.h:11
Definition ctx.h:5