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 isPermanentlyRendered()
const;
102 virtual bool isWithinRenderDistance(
::Vec3 const& cameraPosition)
const;
114 virtual bool isCustomNameSaved();
120 virtual void onMove();
132 virtual void triggerEvent(
int,
int);
135 virtual void clearCache();
144 virtual bool hasAlphaLayer()
const;
153 virtual void getDebugText(::std::vector<::std::string>& outputInfo,
::BlockPos const& debugPos)
const;
156 virtual ::Bedrock::Safety::RedactableString
const& getCustomName()
const;
159 virtual ::std::string
const&
160 getFilteredCustomName(::Bedrock::NotNullNonOwnerPtr<::ProfanityContext>
const&
context);
163 virtual ::std::string getName()
const;
169 virtual ::std::string getImmersiveReaderText(
::BlockSource&);
172 virtual int getRepairCost()
const;
178 virtual ::PistonBlockActor
const* getOwningPiston(
::BlockSource&)
const;
181 virtual ::Container* getContainer();
184 virtual ::Container
const* getContainer()
const;
187 virtual void eraseLootTable();
196 virtual void onSubChunkLoaded(
::LevelChunk&,
short,
bool);
199 virtual ::std::vector<::std::string> getUgcStrings(
::CompoundTag const&)
const;
202 virtual ::std::vector<::std::string> getFilteredUgcStrings(
::CompoundTag const&)
const;
205 virtual void setUgcStrings(
::CompoundTag&, ::std::vector<::std::string>
const&)
const;
208 virtual void setFilteredUgcStrings(
::CompoundTag&, ::std::vector<::std::string>
const&)
const;
214 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(
::BlockSource&);
220 virtual bool _playerCanUpdate(
::Player const&)
const;
234 MCAPI static ::std::map<::BlockActorType, ::std::string>
const& _getClassIdMap();
236 MCAPI static ::std::shared_ptr<::BlockActor>
243 MCAPI
void* $ctor(::BlockActorType type,
::BlockPos const& pos, ::std::string
const&);
267 MCFOLD
bool $isPermanentlyRendered()
const;
269 MCAPI
bool $isWithinRenderDistance(
::Vec3 const& cameraPosition)
const;
277 MCAPI
bool $isCustomNameSaved();
281 MCFOLD
void $onMove();
289 MCFOLD
void $triggerEvent(
int,
int);
291 MCFOLD
void $clearCache();
297 MCFOLD
bool $hasAlphaLayer()
const;
303 MCAPI
void $getDebugText(::std::vector<::std::string>& outputInfo,
::BlockPos const& debugPos)
const;
305 MCFOLD ::Bedrock::Safety::RedactableString
const& $getCustomName()
const;
307 MCAPI ::std::string
const& $getFilteredCustomName(::Bedrock::NotNullNonOwnerPtr<::ProfanityContext>
const&
context);
309 MCFOLD ::std::string $getName()
const;
313 MCFOLD ::std::string $getImmersiveReaderText(
::BlockSource&);
315 MCAPI
int $getRepairCost()
const;
319 MCFOLD ::PistonBlockActor
const* $getOwningPiston(
::BlockSource&)
const;
321 MCFOLD ::Container* $getContainer();
323 MCFOLD ::Container
const* $getContainer()
const;
325 MCFOLD
void $eraseLootTable();
331 MCFOLD
void $onSubChunkLoaded(
::LevelChunk&,
short,
bool);
333 MCFOLD ::std::vector<::std::string> $getUgcStrings(
::CompoundTag const&)
const;
335 MCFOLD ::std::vector<::std::string> $getFilteredUgcStrings(
::CompoundTag const&)
const;
337 MCFOLD
void $setUgcStrings(
::CompoundTag&, ::std::vector<::std::string>
const&)
const;
339 MCFOLD
void $setFilteredUgcStrings(
::CompoundTag&, ::std::vector<::std::string>
const&)
const;
343 MCFOLD ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(
::BlockSource&);
347 MCFOLD
bool $_playerCanUpdate(
::Player const&)
const;
Definition ProfanityContext.h:8
Definition SaveContext.h:5