25class ChalkboardBlockActor :
public ::VanillaBlockActor {
39 ::ll::TypedStorage<8, 32, ::std::string> text;
40 ::ll::TypedStorage<4, 4, int> lineLength;
48 ::ll::TypedStorage<8, 640, ::std::array<::ChalkboardBlockActor::CachedLineData, 16>> lineData;
49 ::ll::TypedStorage<4, 4, uint> numLines;
50 ::ll::TypedStorage<8, 32, ::std::string> filteredMessage;
51 ::ll::TypedStorage<8, 8, void const*> cachedFontCompare;
52 ::ll::TypedStorage<1, 1, bool> dirty;
76 ::ll::TypedStorage<1, 1, bool> mChunkFound;
77 ::ll::TypedStorage<8, 8, ::ChalkboardBlockActor*> mBoard;
83 MCAPI
bool confirmedBroken(::ChalkboardBlockActor& compare,
::BlockSource& region)
const;
90 ::ll::TypedStorage<8, 32, ::std::string> mText;
91 ::ll::TypedStorage<8, 32, ::std::string> mTextObjectString;
92 ::ll::TypedStorage<8, 32, ::TextObjectRoot> mTextObjectMessage;
93 ::ll::TypedStorage<8, 696, ::ChalkboardBlockActor::CachedMessageData> mCachedMessage;
94 ::ll::TypedStorage<8, 24, ::std::vector<::BlockPos>> mSiblings;
95 ::ll::TypedStorage<1, 1, bool> mShouldPersistFormatting;
96 ::ll::TypedStorage<4, 12, ::BlockPos> mBasePos;
97 ::ll::TypedStorage<1, 1, ::ChalkboardSize> mSize;
98 ::ll::TypedStorage<1, 1, bool> mIsOnGround;
99 ::ll::TypedStorage<1, 1, bool> mIsLocked;
100 ::ll::TypedStorage<1, 1, bool> mInitialized;
101 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mOwner;
106 ChalkboardBlockActor();
111 virtual ~ChalkboardBlockActor() =
default;
121 virtual ::std::string getImmersiveReaderText(
::BlockSource& region) ;
123 virtual ::std::vector<::std::string> getUgcStrings(
::CompoundTag const& tag)
const ;
125 virtual void setUgcStrings(
::CompoundTag& tag, ::std::vector<::std::string>
const& list)
const ;
127 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(
::BlockSource&) ;
135 MCAPI
explicit ChalkboardBlockActor(
::BlockPos const& pos);
140 MCAPI ::std::string
const& getText()
const;
143 MCAPI
bool playerMayDestroy(
::Player& player)
const;
146 MCAPI ::ChalkboardBlockActor::CachedMessageData&
158 MCAPI static ::std::vector<::BlockPos>
159 calculateAllBlocks(
::BlockPos const& basePos, ::ChalkboardSize boardSize,
int dir);
161 MCAPI
static bool canCreateChalkboard(
165 ::ChalkboardSize boardSize,
168 ::std::vector<::BlockPos>& occupiedBlocks,
170 bool generateParticles
175 MCAPI static ::ChalkboardBlockActor* createChalkboard(
179 ::ChalkboardSize boardSize,
205 MCAPI ::std::string $getImmersiveReaderText(
::BlockSource& region);
207 MCAPI ::std::vector<::std::string> $getUgcStrings(
::CompoundTag const& tag)
const;
209 MCAPI
void $setUgcStrings(
::CompoundTag& tag, ::std::vector<::std::string>
const& list)
const;
211 MCFOLD ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(
::BlockSource&);
Definition SaveContext.h:5
Definition TextObjectRoot.h:14