LeviLamina
Loading...
Searching...
No Matches
ChalkboardItem.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 CompoundTag;
14class ItemDescriptor;
15class ItemStack;
16class ItemStackBase;
17class Vec3;
19// clang-format on
20
21class ChalkboardItem : public ::Item {
22public:
23 // prevent constructor by default
24 ChalkboardItem();
25
26public:
27 // virtual functions
28 // NOLINTBEGIN
29 virtual ::std::string buildDescriptionId(::ItemDescriptor const& itemDescriptor, ::CompoundTag const*) const
30 /*override*/;
31
32 virtual ::ResolvedItemIconInfo getIconInfo(::ItemStackBase const& item, int, bool) const /*override*/;
33
34 virtual bool _calculatePlacePos(::ItemStackBase& entity, ::Actor& face, uchar& pos, ::BlockPos&) const /*override*/;
35
36 virtual ::InteractionResult
37 _useOn(::ItemStack& instance, ::Actor& entity, ::BlockPos pos, uchar face, ::Vec3 const& clickPos) const
38 /*override*/;
39 // NOLINTEND
40
41public:
42 // member functions
43 // NOLINTBEGIN
44 MCAPI ChalkboardItem(::std::string const& name, int id);
45 // NOLINTEND
46
47public:
48 // static functions
49 // NOLINTBEGIN
50#ifdef LL_PLAT_C
51 MCAPI static bool canPlace(::ItemStack const& instance, ::Actor& actor, ::BlockPos const& hitPos, uchar face);
52#endif
53 // NOLINTEND
54
55public:
56 // constructor thunks
57 // NOLINTBEGIN
58 MCAPI void* $ctor(::std::string const& name, int id);
59 // NOLINTEND
60
61public:
62 // virtual function thunks
63 // NOLINTBEGIN
64 MCAPI ::std::string $buildDescriptionId(::ItemDescriptor const& itemDescriptor, ::CompoundTag const*) const;
65
66 MCFOLD ::ResolvedItemIconInfo $getIconInfo(::ItemStackBase const& item, int, bool) const;
67
68 MCAPI bool $_calculatePlacePos(::ItemStackBase& entity, ::Actor& face, uchar& pos, ::BlockPos&) const;
69
70 MCAPI ::InteractionResult
71 $_useOn(::ItemStack& instance, ::Actor& entity, ::BlockPos pos, uchar face, ::Vec3 const& clickPos) const;
72
73
74 // NOLINTEND
75
76public:
77 // vftables
78 // NOLINTBEGIN
79 MCAPI static void** $vftable();
80 // NOLINTEND
81};
Definition Actor.h:125
Definition BlockPos.h:21
Definition CompoundTag.h:23
Definition InteractionResult.h:5
Definition ItemDescriptor.h:25
Definition ItemStackBase.h:52
Definition ItemStack.h:35
Definition Vec3.h:10
Definition ResolvedItemIconInfo.h:8