Skip to content
LeviMC
English
AutoLightDark
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 const&, ::Actor const& entity, uchar& face, ::BlockPos& pos) const
32 /*override*/;
33
34 virtual ::InteractionResult _useOn(
35 ::ItemStack& instance,
36 ::Actor& entity,
37 ::BlockPos pos,
38 uchar face,
39 ::HandSlot handSlot,
40 ::Vec3 const& clickPos
41 ) const /*override*/;
42 // NOLINTEND
43
44public:
45 // static functions
46 // NOLINTBEGIN
47#ifdef LL_PLAT_C
48 MCNAPI static bool canPlace(::ItemStack const& instance, ::Actor& actor, ::BlockPos const& hitPos, uchar face);
49#endif
50 // NOLINTEND
51
52public:
53 // virtual function thunks
54 // NOLINTBEGIN
55 MCNAPI ::std::string $buildDescriptionId(::ItemDescriptor const& itemDescriptor, ::CompoundTag const*) const;
56
57 MCNAPI ::ResolvedItemIconInfo $getIconInfo(::ItemStackBase const& item, int, bool) const;
58
59 MCNAPI bool $_calculatePlacePos(::ItemStackBase const&, ::Actor const& entity, uchar& face, ::BlockPos& pos) const;
60
61 MCNAPI ::InteractionResult $_useOn(
62 ::ItemStack& instance,
63 ::Actor& entity,
64 ::BlockPos pos,
65 uchar face,
66 ::HandSlot handSlot,
67 ::Vec3 const& clickPos
68 ) const;
69
70
71 // NOLINTEND
72
73public:
74 // vftables
75 // NOLINTBEGIN
76 MCNAPI static void** $vftable();
77 // NOLINTEND
78};
Definition Actor.h:116
Definition BlockPos.h:14
Definition ChalkboardItem.h:22
MCAPI::std::string $buildDescriptionId(::ItemDescriptor const &itemDescriptor, ::CompoundTag const *) const
static MCAPI void ** $vftable()
MCAPI::ResolvedItemIconInfo $getIconInfo(::ItemStackBase const &item, int, bool) const
MCAPI bool $_calculatePlacePos(::ItemStackBase const &, ::Actor const &entity, uchar &face, ::BlockPos &pos) const
MCAPI::InteractionResult $_useOn(::ItemStack &instance, ::Actor &entity, ::BlockPos pos, uchar face, ::HandSlot handSlot, ::Vec3 const &clickPos) const
Definition CompoundTag.h:18
Definition InteractionResult.h:5
Definition ItemDescriptor.h:24
Definition ItemStackBase.h:45
Definition ItemStack.h:26
Definition Vec3.h:10
Definition ResolvedItemIconInfo.h:8