22 virtual ::ContainerID getContainerId()
const = 0;
24 virtual void setContainerId(::ContainerID
id) = 0;
26 virtual ::SharedTypes::Legacy::ContainerType getContainerType()
const = 0;
28 virtual void setContainerType(::SharedTypes::Legacy::ContainerType type) = 0;
30 virtual ::Bedrock::PubSub::Subscription
31 registerContainerTypeListener(::std::function<
void(::SharedTypes::Legacy::ContainerType)> callback)
const = 0;
33 virtual void serverInitItemStackIds() = 0;
35 virtual ::std::vector<::ItemStack> getItemCopies()
const = 0;
37 virtual void setSlot(
int slot,
::ItemStack const& item,
bool fromNetwork) = 0;
39 virtual ::ItemStack
const& getSlot(
int slot)
const = 0;
41 virtual void setData(
int id,
int value) = 0;
45 virtual ::ItemStack
const& getFullContainerSlot(
int slot,
::FullContainerName const& name)
const = 0;
47 virtual void broadcastChanges() = 0;