File BlockActor.hpp

class UIProfanityContext
class BlockActor

Subclassed by RandomizableBlockActorContainerBase

Public Functions

virtual ~BlockActor()
virtual void load(Level &a2, const CompoundTag &tag, DataLoadHelper &a4)
virtual bool save(CompoundTag &tag) const
virtual bool saveItemInstanceData(CompoundTag&) const
virtual void setUgcStrings(CompoundTag&, const std::vector<std::string>&) const
virtual void loadBlockData(const CompoundTag &a2, BlockSource &a3, DataLoadHelper &a4)
virtual void onCustomTagLoadDone(BlockSource &a2)
virtual void tick(BlockSource &region)
virtual void onChanged(BlockSource &a2)
virtual bool isMovable(BlockSource &a2)
virtual bool isCustomNameSaved()
virtual void onPlace(BlockSource &a2)
virtual void onMove()
virtual void onRemoved(BlockSource &a2)
virtual bool isPreserved(BlockSource &a2) const
virtual bool shouldPreserve(BlockSource &a2)
virtual void triggerEvent(int a2, int a3) const
virtual void clearCache()
virtual void onNeighborChanged(BlockSource &region, BlockPos const &position) const
virtual float getShadowRadius(BlockSource &a2) const
virtual bool hasAlphaLayer() const
virtual BlockActor *getCrackEntity(BlockSource &a2, const BlockPos &a3)
virtual AABB getCollisionShape(const IConstBlockSource &a3) const
virtual void getDebugText(std::vector<std::string> &outputInfo, const BlockPos &debugPos)
virtual const std::string &getCustomName() const
virtual const std::string &getFilteredCustomName(const gsl::not_null<Bedrock::NonOwnerPointer<UIProfanityContext>>&)
virtual std::string getName() const
virtual void setCustomName(const std::string &name)
virtual std::string getImmersiveReaderText(BlockSource&)
virtual int getRepairCost() const
virtual void _unknown_30()
virtual void _unknown_31()
virtual void _unknown_32()
virtual void _unknown_33()
virtual void eraseLootTable()
virtual void _unknown_35()
virtual void _unknown_36()
virtual std::vector<std::string> getUgcStrings(const CompoundTag&) const
virtual void _unknown_38()
virtual void _unknown_39()
BlockActor(BlockActorType type, const BlockPos &pos, const std::string &id)
void moveTo(const BlockPos &pos)

Public Members

int mTickCount
const Block *mBlock
float mDestroyTimer
Vec3 mDestroyDirection
float mDestroyProgress
BlockPos mPosition
AABB mBB
const BlockActorType mType
BlockActorRendererId mRendererId
std::string mCustomName
std::string mFilteredCustomName
int mRepairCost
bool mClientSideOnly
bool mIsMovable
bool mSaveCustomName
bool mCanRenderCustomName
const float signShadowRadius
ActorTerrainInterlockData mTerrainInterlockData
bool mChanged

Protected Functions

virtual std::unique_ptr<BlockActorDataPacket> _getUpdatePacket(BlockSource &a2)
virtual void _onUpdatePacket(const CompoundTag &a2, BlockSource &a3)
virtual bool _playerCanUpdate(const Player &fromPlayer) const
class BlockActorFactory

Public Static Functions

static std::shared_ptr<BlockActor> createBlockEntity(BlockActorType type, const BlockPos &pos, const BlockLegacy &block)