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