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& instance, ::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 // virtual function thunks
55 // NOLINTBEGIN
56 MCAPI ::ItemStack& $use(::ItemStack& instance, ::Player& player) const;
57
58 MCFOLD bool $requiresInteract() const;
59
60 MCAPI ::std::string $getInteractText(::Player const& player) const;
61 // NOLINTEND
62
63public:
64 // vftables
65 // NOLINTBEGIN
66 MCNAPI static void** $vftable();
67 // NOLINTEND
68};
Definition ItemStack.h:25
Definition Item.h:65
Definition Player.h:119
Definition WritableBookItem.h:15
static MCAPI void ** $vftable()
Definition PageContent.h:10