LeviLamina
Loading...
Searching...
No Matches
WritableBookItem.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 CompoundTag;
11class ItemStack;
12class ItemStackBase;
13class Player;
14struct PageContent;
15// clang-format on
16
17class WritableBookItem : public ::Item {
18public:
19 // virtual functions
20 // NOLINTBEGIN
21 // vIndex: 77
22 virtual ::ItemStack& use(::ItemStack& item, ::Player& player) const /*override*/;
23
24 // vIndex: 51
25 virtual bool requiresInteract() const /*override*/;
26
27 // vIndex: 112
28 virtual ::std::string getInteractText(::Player const& player) const /*override*/;
29
30 // vIndex: 0
31 virtual ~WritableBookItem() /*override*/ = default;
32 // NOLINTEND
33
34public:
35 // static functions
36 // NOLINTBEGIN
37 MCAPI static void _addPageAt(::ItemStackBase& book, int index, ::PageContent const& page);
38
39 MCAPI static ::PageContent _deletePage(::ItemStackBase& book, int index);
40
41 MCAPI static void _deletePages(::ItemStackBase& book);
42
43 MCAPI static void _replacePage(::ItemStackBase& book, int index, ::PageContent const& page);
44
45 MCAPI static void _signBookUserData(
46 ::CompoundTag& userData,
47 ::std::string title,
48 ::std::optional<::std::string> filteredTitle,
49 ::std::string author,
50 ::std::optional<::std::string> filteredAuthor,
51 ::std::string xuid
52 );
53
54 MCAPI static void addPageAt(::ItemStack& book, int index, ::PageContent const& page);
55
56 MCAPI static void createUserDataIfEmpty(::ItemStackBase& book);
57
58 MCAPI static ::PageContent deletePage(::ItemStack& book, int index);
59
60 MCAPI static void signBook(
61 ::ItemStack& book,
62 ::std::string title,
63 ::std::optional<::std::string> filteredTitle,
64 ::std::string author,
65 ::std::optional<::std::string> filteredAuthor,
66 ::std::string xuid
67 );
68
69 MCAPI static void swapPages(::ItemStack& book, int page1, int page2);
70 // NOLINTEND
71
72public:
73 // virtual function thunks
74 // NOLINTBEGIN
75 MCAPI ::ItemStack& $use(::ItemStack& item, ::Player& player) const;
76
77 MCFOLD bool $requiresInteract() const;
78
79 MCAPI ::std::string $getInteractText(::Player const& player) const;
80 // NOLINTEND
81
82public:
83 // vftables
84 // NOLINTBEGIN
85 MCNAPI static void** $vftable();
86 // NOLINTEND
87};
Definition CompoundTag.h:13
Definition ItemStackBase.h:34
Definition ItemStack.h:23
Definition Item.h:66
Definition Player.h:123
Definition WritableBookItem.h:17
static MCAPI void ** $vftable()
Definition PageContent.h:10