33 enum class Property : uchar {
38 CanRenderCustomName = 4,
42 using MapIdType = ::std::unordered_map<::std::string, ::BlockActorType>;
44 using MapTypeId = ::std::unordered_map<::BlockActorType, ::std::string>;
51 LLNDAPI
static std::shared_ptr<BlockActor> create(
class CompoundTag const& nbt);
53 LLNDAPI
static std::shared_ptr<BlockActor> create(
class CompoundTag const& nbt,
class BlockPos const& pos);
55 [[nodiscard]]
BlockPos const& getPosition()
const {
return mPosition.get(); }
57 [[nodiscard]] BlockActorType getType()
const {
return mType; }
62 ::ll::TypedStorage<4, 12, ::BlockPos> mPosition;
63 ::ll::TypedStorage<1, 1, ::BlockActorType const> mType;
64 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::DynamicPropertiesBlockActorComponent>> mDynamicProperties;
65 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::EntityStorageBlockActorComponent>> mEntityStorage;
66 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::RandomizableContainerBlockActorComponent>> mRandomizableContainer;
67 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ContainerBlockActorComponent>> mContainer;
87 virtual void loadStatic();
91 virtual void onMove();
99 virtual void onSubChunkLoaded(
::LevelChunk&,
short,
bool);
103 virtual void triggerEvent(
int b0,
int b1);
105 virtual bool isTypeOrDerived(::BlockActorType type)
const;
107 virtual void getDebugText(
108 ::std::vector<::std::string>& outputInfo,
113 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(
::BlockSource& region);
117 virtual bool _playerCanUpdate(
::Player const& player)
const;
119 virtual ::IVanillaRenderBlockActorComponent
const* _getRenderComponent()
const;
121 virtual ::IVanillaRenderBlockActorComponent* _getRenderComponent();
123 virtual ::IVanillaTickBlockActorComponent
const* _getTickComponent()
const;
125 virtual ::IVanillaTickBlockActorComponent* _getTickComponent();
127 virtual ::IVanillaMainBlockActorComponent
const* _getMainComponent()
const;
129 virtual ::IVanillaMainBlockActorComponent* _getMainComponent();
141 MCAPI static ::std::shared_ptr<::BlockActor> loadStatic(
181 MCFOLD
void $onMove();
189 MCFOLD
void $onSubChunkLoaded(
::LevelChunk&,
short,
bool);
193 MCFOLD
void $triggerEvent(
int b0,
int b1);
195 MCAPI
bool $isTypeOrDerived(::BlockActorType type)
const;
197 MCAPI
void $getDebugText(
198 ::std::vector<::std::string>& outputInfo,
207 MCFOLD
bool $_playerCanUpdate(
::Player const& player)
const;
Definition IVanillaMainBlockActorComponent.h:18
Definition SaveContext.h:5