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&);
58 ::std::vector<::PageContent>
const& pages,
61 ::std::function<::std::string(::std::string
const&)> profanityFilter
68 MCNAPI
bool finalizeBook(::std::string
const& title, ::std::string
const& author, ::std::string
const& authorXUID);
74 MCNAPI
void firePageTurnSound(::std::string
const& eventName,
float volume,
float pitch)
const;
77 ::std::string
const& author,
78 ::std::string
const& authorXUID,
79 ::std::string
const& playerXUID
98 MCNAPI
void swapPages(
int page1Index,
int page2Index);
Definition BookScreenManager.h:5
MCAPI void startBookExport()
MCAPI void deletePage(int index)
MCAPI void editPage(int index, ::PageContent const &page)
MCAPI ::Core::PathBuffer<::std::string > _getExportTempDir()
MCAPI bool finalizeBook(::std::string const &title, ::std::string const &author, ::std::string const &authorXUID)
MCAPI void fireBookExportEvent() const
MCAPI void updateLectern(int page)
MCAPI::ItemStack const & _getBook()
MCAPI::ViewStatus _viewPage(::PageContent const &page)
MCAPI float buildExportFiles(::std::vector<::PageContent > const &pages, ::ScreenContext &context, ::JpegCommentWriter &writer, ::std::function<::std::string(::std::string const &)> profanityFilter)
MCAPI void populatePickPics(::std::vector<::PageContent > const &pages)
MCAPI ::Core::PathBuffer<::std::string > getScreenshotPath(::PageContent const &page)
MCAPI int getLecternBookPage() const
MCAPI void fireBookEditedEvent() const
MCAPI void firePageTurnSound(::std::string const &eventName, float volume, float pitch) const
MCAPI::std::string getPickPhotoInventoryName(int index)
MCAPI void addPageAt(int index, ::PageContent const &page)
MCAPI ~BookScreenManager()
MCAPI void fireSignedBookOpenedEvent(::std::string const &author, ::std::string const &authorXUID, ::std::string const &playerXUID) const
MCAPI void swapPages(int page1Index, int page2Index)
MCAPI bool lecternHasBook() const
MCAPI::std::string getPickPhotoName(int index)
MCAPI bool lecternIsValid() const
Definition ItemStack.h:26
Definition PacketSender.h:17
Definition ScreenContext.h:5
Definition SyncedPhotoView.h:5
Definition PageContent.h:10