35 using MapIdType = ::std::map<::std::string, ::BlockActorType>;
37 using MapTypeId = ::std::map<::BlockActorType, ::std::string>;
42 LLNDAPI
static std::shared_ptr<BlockActor> create(
class CompoundTag const& nbt);
44 LLNDAPI
static std::shared_ptr<BlockActor> create(
class CompoundTag const& nbt,
class BlockPos const& pos);
49 ::ll::TypedStorage<4, 4, int> mTickCount;
50 ::ll::TypedStorage<8, 8, ::Block const*> mBlock;
51 ::ll::TypedStorage<4, 4, float> mDestroyTimer;
52 ::ll::TypedStorage<4, 12, ::Vec3> mDestroyDirection;
53 ::ll::TypedStorage<4, 4, float> mDestroyProgress;
54 ::ll::TypedStorage<4, 12, ::BlockPos> mPosition;
55 ::ll::TypedStorage<4, 24, ::AABB> mBB;
56 ::ll::TypedStorage<4, 4, ::BlockActorType const> mType;
57 ::ll::TypedStorage<4, 4, ::BlockActorRendererId> mRendererId;
58 ::ll::TypedStorage<8, 72, ::Bedrock::Safety::RedactableString> mCustomName;
59 ::ll::TypedStorage<8, 32, ::std::string> mFilteredCustomName;
60 ::ll::TypedStorage<4, 4, int> mRepairCost;
61 ::ll::TypedStorage<1, 1, bool> mClientSideOnly;
62 ::ll::TypedStorage<1, 1, bool> mIsMovable;
63 ::ll::TypedStorage<1, 1, bool> mSaveCustomName;
64 ::ll::TypedStorage<1, 1, bool> mCanRenderCustomName;
65 ::ll::TypedStorage<4, 4, float const> signShadowRadius;
66 ::ll::TypedStorage<8, 24, ::ActorTerrainInterlockData> mTerrainInterlockData;
67 ::ll::TypedStorage<1, 1, bool> mChanged;
104 virtual bool isCustomNameSaved();
110 virtual void onMove();
122 virtual void triggerEvent(
int,
int);
125 virtual void clearCache();
134 virtual bool hasAlphaLayer()
const;
143 virtual void getDebugText(::std::vector<::std::string>& outputInfo,
::BlockPos const& debugPos);
146 virtual ::Bedrock::Safety::RedactableString
const& getCustomName()
const;
149 virtual ::std::string
const& getFilteredCustomName(::Bedrock::NotNullNonOwnerPtr<::ProfanityContext>
const&
context
153 virtual ::std::string getName()
const;
159 virtual ::std::string getImmersiveReaderText(
::BlockSource&);
162 virtual int getRepairCost()
const;
168 virtual ::PistonBlockActor
const* getOwningPiston(
::BlockSource&)
const;
171 virtual ::Container* getContainer();
174 virtual ::Container
const* getContainer()
const;
177 virtual void eraseLootTable();
186 virtual void onSubChunkLoaded(
::LevelChunk&,
short,
bool);
189 virtual ::std::vector<::std::string> getUgcStrings(
::CompoundTag const&)
const;
192 virtual ::std::vector<::std::string> getFilteredUgcStrings(
::CompoundTag const&)
const;
195 virtual void setUgcStrings(
::CompoundTag&, ::std::vector<::std::string>
const&)
const;
198 virtual void setFilteredUgcStrings(
::CompoundTag&, ::std::vector<::std::string>
const&)
const;
204 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(
::BlockSource&);
210 virtual bool _playerCanUpdate(
::Player const&)
const;
224 MCAPI static ::std::map<::std::string, ::BlockActorType> _createIdClassMap();
226 MCAPI static ::std::shared_ptr<::BlockActor>
233 MCAPI static ::std::map<::BlockActorType, ::std::string>
const& mClassIdMap();
235 MCAPI static ::std::map<::std::string, ::BlockActorType>
const& mIdClassMap();
241 MCAPI
void* $ctor(::BlockActorType type,
::BlockPos const& pos, ::std::string
const&);
271 MCAPI
bool $isCustomNameSaved();
275 MCFOLD
void $onMove();
283 MCFOLD
void $triggerEvent(
int,
int);
285 MCFOLD
void $clearCache();
291 MCFOLD
bool $hasAlphaLayer()
const;
297 MCAPI
void $getDebugText(::std::vector<::std::string>& outputInfo,
::BlockPos const& debugPos);
299 MCFOLD ::Bedrock::Safety::RedactableString
const& $getCustomName()
const;
301 MCAPI ::std::string
const& $getFilteredCustomName(::Bedrock::NotNullNonOwnerPtr<::ProfanityContext>
const&
context);
303 MCFOLD ::std::string $getName()
const;
307 MCFOLD ::std::string $getImmersiveReaderText(
::BlockSource&);
309 MCAPI
int $getRepairCost()
const;
313 MCFOLD ::PistonBlockActor
const* $getOwningPiston(
::BlockSource&)
const;
315 MCFOLD ::Container* $getContainer();
317 MCFOLD ::Container
const* $getContainer()
const;
319 MCFOLD
void $eraseLootTable();
325 MCFOLD
void $onSubChunkLoaded(
::LevelChunk&,
short,
bool);
327 MCFOLD ::std::vector<::std::string> $getUgcStrings(
::CompoundTag const&)
const;
329 MCFOLD ::std::vector<::std::string> $getFilteredUgcStrings(
::CompoundTag const&)
const;
331 MCFOLD
void $setUgcStrings(
::CompoundTag&, ::std::vector<::std::string>
const&)
const;
333 MCFOLD
void $setFilteredUgcStrings(
::CompoundTag&, ::std::vector<::std::string>
const&)
const;
337 MCFOLD ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(
::BlockSource&);
341 MCFOLD
bool $_playerCanUpdate(
::Player const&)
const;
347 MCAPI
static void** $vftable();
Definition ProfanityContext.h:8
Definition SaveContext.h:5