27 enum class BrushingState :
int {
32 enum class Placement :
int {
45 ::ll::TypedStorage<8, 24, ::std::optional<::ExpiringTick>> mBrushReset;
46 ::ll::TypedStorage<8, 24, ::std::optional<::ExpiringTick>> mBrushCooldown;
47 ::ll::TypedStorage<8, 24, ::WeakEntityRef> mDisplayEntity;
48 ::ll::TypedStorage<8, 24, ::std::vector<::ItemStack>> mItems;
49 ::ll::TypedStorage<8, 48, ::HashedString> mBlockId;
50 ::ll::TypedStorage<4, 4, uint> mBrushCount;
51 ::ll::TypedStorage<1, 1, uchar> mBrushDirection;
52 ::ll::TypedStorage<1, 1, bool> mLootTableUnpacked;
57 BrushableBlockActor();
62 virtual ~BrushableBlockActor() =
default;
64 virtual void serverInitItemStackIds(
67 ::std::function<
void(
int,
::ItemStack const&)> onNetIdChanged
70 virtual int getContainerSize()
const ;
72 virtual int getMaxStackSize()
const ;
74 virtual ::ItemStack
const& getItem(
int index)
const ;
76 virtual void setItem(
int slot,
::ItemStack const& item) ;
78 virtual void stopOpen(
::Actor& actor) ;
88 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(
::BlockSource&) ;
105 MCAPI_C ::Actor* tryGetOrCreateDisplayEntity(
::BlockSource& region);
113 MCAPI static ::std::string getLootTableFromVariant(::BrushableBlockActor::Placement state);
127 MCAPI
void $serverInitItemStackIds(
130 ::std::function<
void(
int,
::ItemStack const&)> onNetIdChanged
133 MCFOLD
int $getContainerSize()
const;
135 MCFOLD
int $getMaxStackSize()
const;
137 MCAPI ::ItemStack
const& $getItem(
int index)
const;
139 MCAPI
void $setItem(
int slot,
::ItemStack const& item);
141 MCFOLD
void $stopOpen(
::Actor& actor);
151 MCFOLD ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(
::BlockSource&);
Definition SaveContext.h:5