net.minecraft.world

public class SimpleContainer

implements Container, StackedContentsCompatible

btq
net.minecraft.world.SimpleContainer
net.minecraft.class_1277
net.minecraft.inventory.SimpleInventory
net.minecraft.world.InventorySubcontainer

Field summary

Modifier and TypeField
private final int
b
size
field_5831
size
private final NonNullList<ItemStack>
c
items
field_5828
heldStacks
private List<ContainerListener>
d
listeners
field_5829
listeners

Constructor summary

ModifierConstructor
public (int size)
public (ItemStack... items)

Method summary

Modifier and TypeMethod
public void
a(bte arg0)
addListener(ContainerListener arg0)
method_5489(class_1265 arg0)
addListener(InventoryChangedListener listener)
public void
b(bte arg0)
removeListener(ContainerListener arg0)
method_5488(class_1265 arg0)
removeListener(InventoryChangedListener listener)
public ItemStack
a(int arg0)
getItem(int arg0)
method_5438(int arg0)
getStack(int arg0)
public List<ItemStack>
f()
removeAllItems()
method_24514()
clearToList()
public ItemStack
a(int arg0, int arg1)
removeItem(int arg0, int arg1)
method_5434(int arg0, int arg1)
removeStack(int arg0, int arg1)
public ItemStack
a(cxl arg0, int arg1)
removeItemType(Item arg0, int arg1)
method_20631(class_1792 arg0, int arg1)
removeItem(Item item, int count)
public ItemStack
b(cxp arg0)
addItem(ItemStack arg0)
method_5491(class_1799 arg0)
addStack(ItemStack stack)
public boolean
c(cxp arg0)
canAddItem(ItemStack arg0)
method_27070(class_1799 arg0)
canInsert(ItemStack stack)
public ItemStack
b(int arg0)
removeItemNoUpdate(int arg0)
method_5441(int arg0)
removeStack(int arg0)
public void
a(int arg0, cxp arg1)
setItem(int arg0, ItemStack arg1)
method_5447(int arg0, class_1799 arg1)
setStack(int arg0, ItemStack arg1)
public int
b()
getContainerSize()
method_5439()
size()
public boolean
c()
isEmpty()
method_5442()
isEmpty()
public void
e()
setChanged()
method_5431()
markDirty()
public boolean
a(cpx arg0)
stillValid(Player arg0)
method_5443(class_1657 arg0)
canPlayerUse(PlayerEntity arg0)
public void
a()
clearContent()
method_5448()
clear()
public void
fillStackedContents(cqc arg0)
fillStackedContents(StackedItemContents arg0)
method_7683(class_9875 arg0)
provideRecipeInputs(RecipeFinder arg0)
private void
d(cxp arg0)
moveItemToEmptySlots(ItemStack arg0)
method_20633(class_1799 arg0)
addToNewSlot(ItemStack stack)
private void
e(cxp arg0)
moveItemToOccupiedSlotsWithSameType(ItemStack arg0)
method_20634(class_1799 arg0)
addToExistingSlot(ItemStack stack)
private void
a(cxp arg0, cxp arg1)
moveItemsBetweenStacks(ItemStack arg0, ItemStack arg1)
method_20632(class_1799 arg0, class_1799 arg1)
transfer(ItemStack source, ItemStack target)
public void
a(vd arg0, js$a arg1)
fromTag(ListTag arg0, HolderLookup$Provider arg1)
method_7659(class_2499 arg0, class_7225$class_7874 arg1)
readNbtList(NbtList list, RegistryWrapper$WrapperLookup registries)
public ListTag
a(js$a arg0)
createTag(HolderLookup$Provider arg0)
method_7660(class_7225$class_7874 arg0)
toNbtList(RegistryWrapper$WrapperLookup registries)
public NonNullList<ItemStack>
g()
getItems()
method_54454()
getHeldStacks()