22class LevelContainerModel :
public ::ContainerModel {
26 ::ll::TypedStorage<8, 8, ::Player&> mPlayer;
27 ::ll::TypedStorage<4, 12, ::BlockPos> mBlockPos;
28 ::ll::TypedStorage<1, 1, ::BlockActorType> mBlockEntityType;
29 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mEntityUniqueId;
30 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mContainerRemovedSubscription;
35 LevelContainerModel& operator=(LevelContainerModel
const&);
36 LevelContainerModel(LevelContainerModel
const&);
37 LevelContainerModel();
42 virtual ~LevelContainerModel() =
default;
44 virtual void releaseResources() ;
46 virtual void containerContentChanged(
int slot) ;
48 virtual bool isValid() ;
50 virtual ::ContainerWeakRef getContainerWeakRef()
const ;
52 virtual void postInit() ;
54 virtual bool isSlotDisabled(
int slot)
const ;
56 virtual int _getContainerOffset()
const ;
60 virtual ::Container* _getContainer()
const ;
66 MCAPI LevelContainerModel(
67 ::ContainerEnumName containerName,
71 ::ContainerCategory category
74 MCAPI LevelContainerModel(
75 ::ContainerEnumName containerName,
78 ::BlockActorType type,
80 ::ContainerCategory category
83 MCAPI
void _refreshContainer();
85 MCAPI
void containerRemoved();
98 ::ContainerEnumName containerName,
102 ::ContainerCategory category
106 ::ContainerEnumName containerName,
109 ::BlockActorType type,
111 ::ContainerCategory category
118 MCAPI
void $releaseResources();
120 MCAPI
void $containerContentChanged(
int slot);
122 MCAPI
bool $isValid();
124 MCAPI ::ContainerWeakRef $getContainerWeakRef()
const;
126 MCAPI
void $postInit();
128 MCAPI
bool $isSlotDisabled(
int slot)
const;
130 MCAPI
int $_getContainerOffset()
const;
134 MCAPI ::Container* $_getContainer()
const;
142 MCAPI
static void** $vftable();