File Container.hpp¶
Typedefs
-
using ContainerRuntimeId = unsigned int¶
Enums
-
enum class ContainerType : signed char¶
Values:
-
enumerator NONE¶
-
enumerator INVENTORY¶
-
enumerator CONTAINER¶
-
enumerator WORKBENCH¶
-
enumerator FURNACE¶
-
enumerator ENCHANTMENT¶
-
enumerator BREWING_STAND¶
-
enumerator ANVIL¶
-
enumerator DISPENSER¶
-
enumerator DROPPER¶
-
enumerator HOPPER¶
-
enumerator CAULDRON¶
-
enumerator MINECART_CHEST¶
-
enumerator MINECART_HOPPER¶
-
enumerator HORSE¶
-
enumerator BEACON¶
-
enumerator STRUCTURE_EDITOR¶
-
enumerator TRADE¶
-
enumerator COMMAND_BLOCK¶
-
enumerator JUKEBOX¶
-
enumerator ARMOR¶
-
enumerator HAND¶
-
enumerator COMPOUND_CREATOR¶
-
enumerator ELEMENT_CONSTRUCTOR¶
-
enumerator MATERIAL_REDUCER¶
-
enumerator LAB_TABLE¶
-
enumerator LOOM¶
-
enumerator LECTERN¶
-
enumerator GRINDSTONE¶
-
enumerator BLAST_FURNACE¶
-
enumerator SMOKER¶
-
enumerator STONECUTTER¶
-
enumerator CARTOGRAPHY¶
-
enumerator HUD¶
-
enumerator JIGSAW_EDITOR¶
-
enumerator SMITHING_TABLE¶
-
enumerator CHEST_BOAT¶
-
enumerator NONE¶
-
class Container¶
Subclassed by FillingContainer, SimpleContainer
Public Functions
-
Container(ContainerType type)¶
-
Container(ContainerType type, const std::string &containerName, bool hasCustomName)¶
-
virtual ~Container()¶
-
virtual void init()¶
-
virtual void addContentChangeListener(ContainerContentChangeListener*)¶
-
virtual void removeContentChangeListener(ContainerContentChangeListener*)¶
-
virtual void addRemovedListener(ContainerRemovedListener*)¶
-
virtual void removeRemovedListener(ContainerRemovedListener*)¶
-
virtual void removeItem(int, int)¶
-
virtual void removeAllItems()¶
-
virtual void removeAllItemsWithForceBalance()¶
-
virtual void containerRemoved()¶
-
virtual void dropSlotContent(BlockSource&, const Vec3&, bool, int)¶
-
virtual void dropContents(BlockSource&, const Vec3&, bool)¶
-
virtual int getContainerSize() const = 0¶
-
virtual int getMaxStackSize() const = 0¶
-
virtual int getEmptySlotsCount() const¶
-
virtual void setContainerChanged(int)¶
-
virtual void setContainerMoved()¶
-
virtual bool hasCustomName() const¶
-
virtual void readAdditionalSaveData(const CompoundTag&)¶
-
virtual void addAdditionalSaveData(CompoundTag&)¶
-
virtual void createTransactionContext(std::function<void(Container&, int, ItemStack const&, ItemStack const&)>, std::function<void()>)¶
-
virtual void initializeContainerContents(BlockSource&)¶
-
virtual bool isEmpty() const¶
-
virtual bool isSlotDisabled(int slot)¶
-
virtual bool hasGetStrictParsingVersion()¶
Public Members
-
ContainerType mContainerType¶
-
ContainerType mGameplayContainerType¶
-
std::deque<std::function<void(Container&, int, const ItemStack&, const ItemStack&)>> mTransactionContextStack¶
-
bool mCustomName¶
-
ContainerRuntimeId mContainerRuntimeId¶
-
Container(ContainerType type)¶