44 ::ll::TypedStorage<8, 8, ::ChestBlockActor&> mChest;
45 ::ll::TypedStorage<1, 1, bool> mIsUsed;
46 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mActorId;
59 ::ll::TypedStorage<4, 4, float> mSpeed;
60 ::ll::TypedStorage<1, 1, bool> mIsGlobalChest;
61 ::ll::TypedStorage<1, 1, bool> mUsesBlockTypeDetection;
62 ::ll::TypedStorage<4, 4, float> mObstructionHeight;
64 ::ll::TypedStorage<4, 4, float> mOpenness;
65 ::ll::TypedStorage<4, 4, float> mOldOpenness;
66 ::ll::TypedStorage<1, 1, bool> mIsOpen;
67 ::ll::TypedStorage<4, 4, int> mTickInterval;
68 bool mPairingChanged : 1;
70 bool mDeferredPairLoad : 1;
72 ::ll::TypedStorage<4, 4, int> mDeferredPairX;
73 ::ll::TypedStorage<4, 4, int> mDeferredPairZ;
74 ::ll::TypedStorage<8, 8, ::ChestBlockActor*> mLargeChestPaired;
75 ::ll::TypedStorage<4, 12, ::BlockPos> mLargeChestPairedPosition;
76 ::ll::TypedStorage<1, 2, ::std::optional<::ChestType>> mChestType;
77 ::ll::TypedStorage<1, 1, bool> mIsFindable;
78 ::ll::TypedStorage<8, 64, ::std::unordered_set<::ActorUniqueID>> mOpenedByIds;
79 ::ll::TypedStorage<4, 4, int> mUpdateFlags;
80 ::ll::TypedStorage<8, 24, ::std::vector<::std::shared_ptr<::ChestBlockActor::ChestCloser>>> mChestClosers;
94 virtual int getContainerSize() const ;
97 virtual
int getMaxStackSize() const ;
100 virtual ::
std::
string getName() const ;
103 virtual ::
ItemStack const& getItem(
int slot) const ;
106 virtual
void setItem(
int slot, ::
ItemStack const& item) ;
109 virtual
void setItemWithForceBalance(
int slot, ::
ItemStack const& item,
bool forceBalanced) ;
112 virtual
void serverInitItemStackIds(
115 ::
std::function<
void(
int, ::
ItemStack const&)> onNetIdChanged
137 virtual
void triggerEvent(
int b0,
int b1) ;
140 virtual
void startOpen(::
Actor& actor) ;
146 virtual
void stopOpen(::
Actor& actor) ;
158 virtual
int clearInventory(
int resizeTo) ;
164 virtual ::
Container const* getContainer() const ;
167 virtual
void onMove() ;
173 virtual
void openBy(::
Player& p);
176 virtual
void setContainerChanged(
int slot) ;
179 virtual
bool canPushInItem(
int,
int, ::
ItemStack const&) const ;
182 virtual
bool canPullOutItem(
int,
int, ::
ItemStack const&) const ;
185 virtual
void getDebugText(
186 ::
std::vector<::
std::
string>& outputInfo,
198 virtual
void initializeContainerContents(::
BlockSource& region) ;
201 virtual ::
std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(::
BlockSource& region) ;
207 virtual
bool _canOpenThis(::
BlockSource& region) const;
210 virtual ::
AABB getObstructionAABB() const;
213 virtual
bool _detectEntityObstruction(::
BlockSource& region) const;
216 virtual ::SharedTypes::Legacy::LevelSoundEvent getOpenSound() const;
219 virtual ::SharedTypes::Legacy::LevelSoundEvent getCloseSound() const;
226 ::BlockActorType type,
227 ::BlockActorRendererId renderId,
228 ::
std::optional<::ChestType> chestType,
234 MCAPI
bool _detectBlockObstruction(::
BlockSource& region) const;
242 MCAPI
void _unpair();
244 MCAPI
void _validatePairedChest(::
BlockSource& region);
269 ::BlockActorType type,
270 ::BlockActorRendererId renderId,
271 ::
std::optional<::ChestType> chestType,
285 MCAPI
int $getContainerSize() const;
287 MCFOLD
int $getMaxStackSize() const;
289 MCAPI ::
std::
string $getName() const;
291 MCAPI ::
ItemStack const& $getItem(
int slot) const;
293 MCAPI
void $setItem(
int slot, ::
ItemStack const& item);
295 MCFOLD
void $setItemWithForceBalance(
int slot, ::
ItemStack const& item,
bool forceBalanced);
297 MCAPI
void $serverInitItemStackIds(
300 ::
std::function<
void(
int, ::
ItemStack const&)> onNetIdChanged
315 MCAPI
void $triggerEvent(
int b0,
int b1);
317 MCAPI
void $startOpen(::
Actor& actor);
321 MCAPI
void $stopOpen(::
Actor& actor);
329 MCAPI
int $clearInventory(
int resizeTo);
333 MCFOLD ::
Container const* $getContainer() const;
335 MCFOLD
void $onMove();
339 MCAPI
void $openBy(::
Player& p);
341 MCAPI
void $setContainerChanged(
int slot);
343 MCFOLD
bool $canPushInItem(
int,
int, ::
ItemStack const&) const;
345 MCFOLD
bool $canPullOutItem(
int,
int, ::
ItemStack const&) const;
347 MCAPI
void $getDebugText(
348 ::
std::vector<::
std::
string>& outputInfo,
357 MCAPI
void $initializeContainerContents(::
BlockSource& region);
359 MCAPI ::
std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(::
BlockSource& region);
363 MCAPI
bool $_canOpenThis(::
BlockSource& region) const;
365 MCAPI ::
AABB $getObstructionAABB() const;
367 MCAPI
bool $_detectEntityObstruction(::
BlockSource& region) const;
369 MCAPI ::SharedTypes::Legacy::LevelSoundEvent $getOpenSound() const;
371 MCAPI ::SharedTypes::Legacy::LevelSoundEvent $getCloseSound() const;
377 MCAPI static
void** $vftableForFillingContainer();
379 MCAPI static
void** $vftableForRandomizableBlockActorContainerBase();
Definition ContainerContentChangeListener.h:5
Definition SaveContext.h:5