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 id) /*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* createProjectileActor(
42 ::BlockSource& region,
43 ::ItemStack const& stack,
44 ::Vec3 const& pos,
45 ::Vec3 const& aimDirection
46 ) const /*override*/;
47
48 virtual bool dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const
49 /*override*/;
50 // NOLINTEND
51
52public:
53 // member functions
54 // NOLINTBEGIN
55 MCAPI SnowballItem(::std::string const& name, int id, ::cereal::ReflectionCtx& ctx);
56 // NOLINTEND
57
58public:
59 // constructor thunks
60 // NOLINTBEGIN
61 MCAPI void* $ctor(::std::string const& name, int id, ::cereal::ReflectionCtx& ctx);
62 // NOLINTEND
63
64public:
65 // virtual function thunks
66 // NOLINTBEGIN
67 MCFOLD ::Item& $setIconInfo(::std::string const& name, int id);
68
69 MCFOLD ::ResolvedItemIconInfo
70 $getIconInfo(::ItemStackBase const& item, int newAnimationFrame, bool inInventoryPane) const;
71
72 MCFOLD ::std::string
73 $buildDescriptionId(::ItemDescriptor const& itemDescriptor, ::CompoundTag const* userData) const;
74
75 MCFOLD ::SnowballItem& $setDescriptionId(::std::string const& descriptionId);
76
77 MCAPI ::Actor* $createProjectileActor(
78 ::BlockSource& region,
79 ::ItemStack const& stack,
80 ::Vec3 const& pos,
81 ::Vec3 const& aimDirection
82 ) const;
83
84 MCAPI 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 MCAPI static void** $vftable();
93 // NOLINTEND
94};
Definition Actor.h:125
Definition BlockSource.h:73
Definition CompoundTag.h:23
Definition Container.h:34
Definition ItemDescriptor.h:25
Definition ItemStackBase.h:52
Definition ItemStack.h:35
Definition Item.h:71
Definition Vec3.h:10
Definition ResolvedItemIconInfo.h:8
Definition ReflectionCtx.h:11
Definition ctx.h:5