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;
99 virtual bool isWithinRenderDistance(
::Vec3 const& cameraPosition)
const;
111 virtual bool isCustomNameSaved();
117 virtual void onMove();
129 virtual void triggerEvent(
int,
int);
132 virtual void clearCache();
141 virtual bool hasAlphaLayer()
const;
150 virtual void getDebugText(::std::vector<::std::string>& outputInfo,
::BlockPos const& debugPos)
const;
153 virtual ::Bedrock::Safety::RedactableString
const& getCustomName()
const;
156 virtual ::std::string
const&
157 getFilteredCustomName(::Bedrock::NotNullNonOwnerPtr<::ProfanityContext>
const&
context);
160 virtual ::std::string getName()
const;
166 virtual ::std::string getImmersiveReaderText(
::BlockSource&);
169 virtual int getRepairCost()
const;
175 virtual ::PistonBlockActor
const* getOwningPiston(
::BlockSource&)
const;
178 virtual ::Container* getContainer();
181 virtual ::Container
const* getContainer()
const;
184 virtual void eraseLootTable();
193 virtual void onSubChunkLoaded(
::LevelChunk&,
short,
bool);
196 virtual ::std::vector<::std::string> getUgcStrings(
::CompoundTag const&)
const;
199 virtual ::std::vector<::std::string> getFilteredUgcStrings(
::CompoundTag const&)
const;
202 virtual void setUgcStrings(
::CompoundTag&, ::std::vector<::std::string>
const&)
const;
205 virtual void setFilteredUgcStrings(
::CompoundTag&, ::std::vector<::std::string>
const&)
const;
211 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(
::BlockSource&);
217 virtual bool _playerCanUpdate(
::Player const&)
const;
231 MCAPI static ::std::map<::BlockActorType, ::std::string>
const& _getClassIdMap();
233 MCAPI static ::std::shared_ptr<::BlockActor>
240 MCAPI
void* $ctor(::BlockActorType type,
::BlockPos const& pos, ::std::string
const&);
264 MCAPI
bool $isWithinRenderDistance(
::Vec3 const& cameraPosition)
const;
272 MCAPI
bool $isCustomNameSaved();
276 MCFOLD
void $onMove();
284 MCFOLD
void $triggerEvent(
int,
int);
286 MCFOLD
void $clearCache();
292 MCFOLD
bool $hasAlphaLayer()
const;
298 MCAPI
void $getDebugText(::std::vector<::std::string>& outputInfo,
::BlockPos const& debugPos)
const;
300 MCFOLD ::Bedrock::Safety::RedactableString
const& $getCustomName()
const;
302 MCAPI ::std::string
const& $getFilteredCustomName(::Bedrock::NotNullNonOwnerPtr<::ProfanityContext>
const&
context);
304 MCFOLD ::std::string $getName()
const;
308 MCFOLD ::std::string $getImmersiveReaderText(
::BlockSource&);
310 MCAPI
int $getRepairCost()
const;
314 MCFOLD ::PistonBlockActor
const* $getOwningPiston(
::BlockSource&)
const;
316 MCFOLD ::Container* $getContainer();
318 MCFOLD ::Container
const* $getContainer()
const;
320 MCFOLD
void $eraseLootTable();
326 MCFOLD
void $onSubChunkLoaded(
::LevelChunk&,
short,
bool);
328 MCFOLD ::std::vector<::std::string> $getUgcStrings(
::CompoundTag const&)
const;
330 MCFOLD ::std::vector<::std::string> $getFilteredUgcStrings(
::CompoundTag const&)
const;
332 MCFOLD
void $setUgcStrings(
::CompoundTag&, ::std::vector<::std::string>
const&)
const;
334 MCFOLD
void $setFilteredUgcStrings(
::CompoundTag&, ::std::vector<::std::string>
const&)
const;
338 MCFOLD ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(
::BlockSource&);
342 MCFOLD
bool $_playerCanUpdate(
::Player const&)
const;
Definition ProfanityContext.h:8
Definition SaveContext.h:5