3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/util/ViewStatus.h"
7#include "mc/deps/core/file/PathBuffer.h"
8#include "mc/world/level/BlockPos.h"
25 ::ll::TypedStorage<8, 8, ::Player&> mPlayer;
26 ::ll::TypedStorage<4, 16, ::std::optional<::BlockPos>> mLecternPos;
27 ::ll::TypedStorage<4, 4, int> mBookSlot;
28 ::ll::TypedStorage<8, 8, ::PacketSender&> mPacketSender;
29 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::SyncedPhotoView>> mPhotoView;
30 ::ll::TypedStorage<8, 24, ::std::vector<::Core::PathBuffer<::std::string>>> mPickPictures;
31 ::ll::TypedStorage<8, 24, ::std::vector<::Core::PathBuffer<::std::string>>> mPickPicturesInventory;
32 ::ll::TypedStorage<8, 24, ::std::vector<::Core::PathBuffer<::std::string>>> mExportFiles;
33 ::ll::TypedStorage<8, 8, uint64> mCurExportPage;
34 ::ll::TypedStorage<8, 8, uint64> mPhotoItemsLimitPage;
35 ::ll::TypedStorage<1, 1, bool> mEdited;
36 ::ll::TypedStorage<1, 1, bool> mIsEdu;
37 ::ll::TypedStorage<1, 1, bool> hasExportedFirstPhoto;
42 BookScreenManager& operator=(BookScreenManager
const&);
43 BookScreenManager(BookScreenManager
const&);
49 MCAPI ::ItemStack
const& _getBook();
51 MCAPI ::Core::PathBuffer<::std::string> _getExportTempDir();
53 MCAPI ::ViewStatus _viewPage(::PageContent
const& page);
55 MCAPI
void addPageAt(
int index, ::PageContent
const& page);
57 MCAPI
float buildExportFiles(
58 ::std::vector<::PageContent>
const& pages,
59 ::ScreenContext& context,
60 ::JpegCommentWriter& writer,
61 ::std::function<::std::string(::std::string
const&)> profanityFilter
64 MCAPI
void deletePage(
int index);
66 MCAPI
void editPage(
int index, ::PageContent
const& page);
68 MCAPI
bool finalizeBook(::std::string
const& title, ::std::string
const& author, ::std::string
const& authorXUID);
70 MCAPI
void fireBookEditedEvent()
const;
72 MCAPI
void fireBookExportEvent()
const;
74 MCAPI
void firePageTurnSound(::std::string
const& eventName,
float volume,
float pitch)
const;
76 MCAPI
void fireSignedBookOpenedEvent(
77 ::std::string
const& author,
78 ::std::string
const& authorXUID,
79 ::std::string
const& playerXUID
82 MCAPI ::std::vector<::PageContent> getBookPages();
84 MCFOLD ::std::vector<::Core::PathBuffer<::std::string>>
const& getExportFiles();
86 MCAPI ::std::optional<::std::string>
const getFilteredSignedAuthor();
88 MCAPI ::std::optional<::std::string>
const getFilteredTitle();
90 MCAPI
int getLecternBookPage()
const;
92 MCAPI ::std::string getPickPhotoInventoryName(
int index);
94 MCAPI ::std::string getPickPhotoName(
int index);
96 MCAPI ::Core::PathBuffer<::std::string>
const* getPickPicture(
int index);
98 MCAPI ::Core::PathBuffer<::std::string>
const* getPickPictureInventory(
int index);
100 MCAPI uint64 getPickPictureInventorySize();
102 MCAPI uint64 getPickPictureSize();
104 MCAPI ::Core::PathBuffer<::std::string> getScreenshotPath(::PageContent
const& page);
106 MCAPI ::std::string
const& getSignedAuthor();
108 MCAPI ::std::string
const& getTitle();
110 MCAPI ::std::string
const& getXUID();
112 MCFOLD
bool isOnLectern()
const;
114 MCAPI
bool lecternHasBook()
const;
116 MCAPI
bool lecternIsValid()
const;
118 MCAPI
void populatePickPics(::std::vector<::PageContent>
const& pages);
120 MCAPI
void setExitPage(
int page);
122 MCAPI
void startBookExport();
124 MCAPI
void swapPages(
int page1Index,
int page2Index);
126 MCAPI
float tickBookDownload(::std::vector<::PageContent>
const& pages);
128 MCAPI
void updateLectern(
int page);
130 MCAPI
bool viewPage(::PageContent
const& page);
132 MCAPI ~BookScreenManager();
Definition BookScreenManager.h:5
Definition ItemStack.h:35
Definition PacketSender.h:17
Definition ScreenContext.h:5
Definition SyncedPhotoView.h:5
Definition PageContent.h:10