32 enum class Property : uchar {
37 CanRenderCustomName = 4,
41 using MapIdType = ::std::unordered_map<::std::string, ::BlockActorType>;
43 using MapTypeId = ::std::unordered_map<::BlockActorType, ::std::string>;
50 LLNDAPI
static std::shared_ptr<BlockActor> create(
class CompoundTag const& nbt);
52 LLNDAPI
static std::shared_ptr<BlockActor> create(
class CompoundTag const& nbt,
class BlockPos const& pos);
54 [[nodiscard]]
BlockPos const& getPosition()
const {
return mPosition.get(); }
56 [[nodiscard]] BlockActorType getType()
const {
return mType; }
61 ::ll::TypedStorage<4, 12, ::BlockPos> mPosition;
62 ::ll::TypedStorage<1, 1, ::BlockActorType const> mType;
63 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::DynamicPropertiesBlockActorComponent>> mDynamicProperties;
64 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::RandomizableContainerBlockActorComponent>> mRandomizableContainer;
65 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ContainerBlockActorComponent>> mContainer;
85 virtual void loadStatic();
89 virtual void onMove();
97 virtual void onSubChunkLoaded(
::LevelChunk&,
short,
bool);
101 virtual void triggerEvent(
int b0,
int b1);
103 virtual bool isTypeOrDerived(::BlockActorType type)
const;
105 virtual void getDebugText(
106 ::std::vector<::std::string>& outputInfo,
111 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(
::BlockSource& region);
115 virtual bool _playerCanUpdate(
::Player const& player)
const;
117 virtual ::IVanillaRenderBlockActorComponent
const* _getRenderComponent()
const;
119 virtual ::IVanillaRenderBlockActorComponent* _getRenderComponent();
121 virtual ::IVanillaTickBlockActorComponent
const* _getTickComponent()
const;
123 virtual ::IVanillaTickBlockActorComponent* _getTickComponent();
125 virtual ::IVanillaMainBlockActorComponent
const* _getMainComponent()
const;
127 virtual ::IVanillaMainBlockActorComponent* _getMainComponent();
139 MCAPI static ::std::shared_ptr<::BlockActor> loadStatic(
151 MCAPI static ::std::string
const& KEY_VERSION();
175 MCFOLD
void $loadStatic();
179 MCFOLD
void $onMove();
187 MCFOLD
void $onSubChunkLoaded(
::LevelChunk&,
short,
bool);
191 MCFOLD
void $triggerEvent(
int b0,
int b1);
193 MCAPI
bool $isTypeOrDerived(::BlockActorType type)
const;
195 MCAPI
void $getDebugText(
196 ::std::vector<::std::string>& outputInfo,
201 MCFOLD ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(
::BlockSource& region);
205 MCFOLD
bool $_playerCanUpdate(
::Player const& player)
const;
207 MCFOLD ::IVanillaRenderBlockActorComponent
const* $_getRenderComponent()
const;
209 MCFOLD ::IVanillaRenderBlockActorComponent* $_getRenderComponent();
211 MCFOLD ::IVanillaTickBlockActorComponent
const* $_getTickComponent()
const;
213 MCFOLD ::IVanillaTickBlockActorComponent* $_getTickComponent();
215 MCFOLD ::IVanillaMainBlockActorComponent
const* $_getMainComponent()
const;
217 MCFOLD ::IVanillaMainBlockActorComponent* $_getMainComponent();
225 MCAPI
static void** $vftable();
Definition IVanillaMainBlockActorComponent.h:18
Definition SaveContext.h:5