26class ChalkboardBlockActor :
public ::BlockActor {
40 ::ll::TypedStorage<8, 32, ::std::string> text;
41 ::ll::TypedStorage<4, 4, int> lineLength;
49 ::ll::TypedStorage<8, 640, ::std::array<::ChalkboardBlockActor::CachedLineData, 16>> lineData;
50 ::ll::TypedStorage<4, 4, uint> numLines;
51 ::ll::TypedStorage<8, 32, ::std::string> filteredMessage;
52 ::ll::TypedStorage<8, 8, void const*> cachedFontCompare;
53 ::ll::TypedStorage<1, 1, bool> dirty;
73 ::ll::TypedStorage<1, 1, bool> mChunkFound;
74 ::ll::TypedStorage<8, 8, ::ChalkboardBlockActor*> mBoard;
80 MCAPI
bool confirmedBroken(::ChalkboardBlockActor& compare,
::BlockSource& region)
const;
87 ::ll::TypedStorage<8, 32, ::std::string> mText;
88 ::ll::TypedStorage<8, 32, ::std::string> mTextObjectString;
89 ::ll::TypedStorage<8, 32, ::TextObjectRoot> mTextObjectMessage;
90 ::ll::TypedStorage<8, 696, ::ChalkboardBlockActor::CachedMessageData> mCachedMessage;
91 ::ll::TypedStorage<8, 24, ::std::vector<::BlockPos>> mSiblings;
92 ::ll::TypedStorage<1, 1, bool> mShouldPersistFormatting;
93 ::ll::TypedStorage<4, 12, ::BlockPos> mBasePos;
94 ::ll::TypedStorage<1, 1, ::ChalkboardSize> mSize;
95 ::ll::TypedStorage<1, 1, bool> mIsOnGround;
96 ::ll::TypedStorage<1, 1, bool> mIsLocked;
97 ::ll::TypedStorage<1, 1, bool> mInitialized;
98 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mOwner;
103 ChalkboardBlockActor();
108 virtual ~ChalkboardBlockActor() ;
118 virtual ::std::string getImmersiveReaderText(
::BlockSource& region) ;
120 virtual ::std::vector<::std::string> getUgcStrings(
::CompoundTag const& tag)
const ;
122 virtual void setUgcStrings(
::CompoundTag& tag, ::std::vector<::std::string>
const& list)
const ;
124 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(
::BlockSource&) ;
132 MCAPI
explicit ChalkboardBlockActor(
::BlockPos const& pos);
134 MCAPI ::std::vector<::BlockPos>
const& _getSiblings(
::BlockSource& region);
136 MCAPI ::ChalkboardBlockActor
const* getBaseChalkboard(
::IConstBlockSource const& region)
const;
138 MCAPI ::ChalkboardBlockActor* getBaseChalkboard(
::BlockSource& region)
const;
141 MCFOLD ::ChalkboardBlockActor::CachedMessageData
const& getCachedMessage()
const;
144 MCAPI ::ChalkboardSize
const getChalkboardSize()
const;
146 MCAPI
bool getLocked()
const;
152 MCAPI ::std::string
const& getText()
const;
154 MCFOLD
int getTextCharCount()
const;
157 MCFOLD ::std::string
const& getUnfilteredText()
const;
159 MCAPI
int getWidth()
const;
162 MCAPI
bool isBaseChalkboard()
const;
165 MCAPI
bool isInitialized()
const;
168 MCAPI
bool isOnGround()
const;
170 MCAPI
bool playerMayDestroy(
::Player& player)
const;
172 MCAPI
bool playerMayEdit(
::Player& player)
const;
174 MCAPI
bool playerMayToggleLock(
::Player& player)
const;
177 MCAPI ::ChalkboardBlockActor::CachedMessageData&
180 MCAPI
void setLocked(
bool locked);
182 MCAPI
void setText(::std::string
const& text);
188 MCAPI
bool shouldPersistFormatting()
const;
197 MCAPI static ::std::vector<::BlockPos>
198 calculateAllBlocks(
::BlockPos const& basePos, ::ChalkboardSize boardSize,
int dir);
200 MCAPI
static bool canCreateChalkboard(
204 ::ChalkboardSize boardSize,
207 ::std::vector<::BlockPos>& occupiedBlocks,
209 bool generateParticles
214 MCAPI static ::ChalkboardBlockActor* createChalkboard(
218 ::ChalkboardSize boardSize,
250 MCAPI ::std::string $getImmersiveReaderText(
::BlockSource& region);
252 MCAPI ::std::vector<::std::string> $getUgcStrings(
::CompoundTag const& tag)
const;
254 MCAPI
void $setUgcStrings(
::CompoundTag& tag, ::std::vector<::std::string>
const& list)
const;
256 MCFOLD ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(
::BlockSource&);
266 MCAPI
static void** $vftable();
Definition SaveContext.h:5
Definition TextObjectRoot.h:17