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/HandSlot.h"
7#include "mc/world/item/Item.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class BlockPos;
13class CompoundTag;
15class ItemDescriptor;
16class ItemStack;
17class ItemStackBase;
18class Vec3;
20// clang-format on
21
22class ChalkboardItem : public ::Item {
23public:
24 // virtual functions
25 // NOLINTBEGIN
26 virtual ::std::string buildDescriptionId(::ItemDescriptor const& itemDescriptor, ::CompoundTag const*) const
27 /*override*/;
28
29 virtual ::ResolvedItemIconInfo getIconInfo(::ItemStackBase const& item, int, bool) const /*override*/;
30
31 virtual bool _calculatePlacePos(::ItemStackBase&, ::Actor& entity, uchar& face, ::BlockPos& pos) const /*override*/;
32
33 virtual ::InteractionResult _useOn(
34 ::ItemStack& instance,
35 ::Actor& entity,
36 ::BlockPos pos,
37 uchar face,
38 ::HandSlot handSlot,
39 ::Vec3 const& clickPos
40 ) const /*override*/;
41 // NOLINTEND
42
43public:
44 // static functions
45 // NOLINTBEGIN
46#ifdef LL_PLAT_C
47 MCAPI static bool canPlace(::ItemStack const& instance, ::Actor& actor, ::BlockPos const& hitPos, uchar face);
48#endif
49 // NOLINTEND
50
51public:
52 // virtual function thunks
53 // NOLINTBEGIN
54 MCAPI ::std::string $buildDescriptionId(::ItemDescriptor const& itemDescriptor, ::CompoundTag const*) const;
55
56 MCFOLD ::ResolvedItemIconInfo $getIconInfo(::ItemStackBase const& item, int, bool) const;
57
58 MCAPI bool $_calculatePlacePos(::ItemStackBase&, ::Actor& entity, uchar& face, ::BlockPos& pos) const;
59
60 MCAPI ::InteractionResult $_useOn(
61 ::ItemStack& instance,
62 ::Actor& entity,
63 ::BlockPos pos,
64 uchar face,
65 ::HandSlot handSlot,
66 ::Vec3 const& clickPos
67 ) const;
68
69
70 // NOLINTEND
71
72public:
73 // vftables
74 // NOLINTBEGIN
75 MCAPI static void** $vftable();
76 // NOLINTEND
77};
Definition Actor.h:113
Definition BlockPos.h:17
Definition ChalkboardItem.h:22
Definition CompoundTag.h:18
Definition InteractionResult.h:5
Definition ItemDescriptor.h:25
Definition ItemStackBase.h:44
Definition ItemStack.h:26
Definition Vec3.h:10
Definition ResolvedItemIconInfo.h:8