net.minecraft.world

public class SimpleContainer

implements Container, StackedContentsCompatible

asg
net.minecraft.world.SimpleContainer
net.minecraft.class_1277
net.minecraft.inventory.SimpleInventory
net.minecraft.src.C_479_
net.minecraft.world.InventorySubcontainer

Field summary

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

Constructor summary

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

Method summary

Modifier and TypeMethod
public void
a(arw arg0)
addListener(ContainerListener arg0)
method_5489(class_1265 arg0)
addListener(InventoryChangedListener listener)
m_19164_(C_466_ arg0)
public void
b(arw arg0)
removeListener(ContainerListener arg0)
method_5488(class_1265 arg0)
removeListener(InventoryChangedListener listener)
m_19181_(C_466_ arg0)
public ItemStack
a(int arg0)
getItem(int arg0)
method_5438(int arg0)
getStack(int arg0)
m_8020_(int arg0)
getItem(int arg0)
public List<ItemStack>
f()
removeAllItems()
method_24514()
clearToList()
m_19195_()
public ItemStack
a(int arg0, int arg1)
removeItem(int arg0, int arg1)
method_5434(int arg0, int arg1)
removeStack(int arg0, int arg1)
m_7407_(int p_19160_, int arg1)
splitStack(int arg0, int arg1)
public ItemStack
a(bqm arg0, int arg1)
removeItemType(Item arg0, int arg1)
method_20631(class_1792 arg0, int arg1)
removeItem(Item item, int count)
m_19170_(C_1381_ p_19172_, int arg1)
public ItemStack
a(bqq arg0)
addItem(ItemStack arg0)
method_5491(class_1799 arg0)
addStack(ItemStack stack)
m_19173_(C_1391_ arg0)
public boolean
b(bqq arg0)
canAddItem(ItemStack arg0)
method_27070(class_1799 arg0)
canInsert(ItemStack stack)
m_19183_(C_1391_ arg0)
public ItemStack
b(int arg0)
removeItemNoUpdate(int arg0)
method_5441(int arg0)
removeStack(int arg0)
m_8016_(int arg0)
splitWithoutUpdate(int arg0)
public void
a(int arg0, bqq arg1)
setItem(int arg0, ItemStack arg1)
method_5447(int arg0, class_1799 arg1)
setStack(int arg0, ItemStack arg1)
m_6836_(int p_19163_, C_1391_ arg1)
setItem(int arg0, ItemStack arg1)
public int
b()
getContainerSize()
method_5439()
size()
m_6643_()
getSize()
public boolean
c()
isEmpty()
method_5442()
isEmpty()
m_7983_()
isEmpty()
public void
e()
setChanged()
method_5431()
markDirty()
m_6596_()
update()
public boolean
a(bke arg0)
stillValid(Player arg0)
method_5443(class_1657 arg0)
canPlayerUse(PlayerEntity arg0)
m_6542_(C_1141_ arg0)
public void
a()
clearContent()
method_5448()
clear()
m_6211_()
clear()
public void
a(bkg arg0)
fillStackedContents(StackedContents arg0)
method_7683(class_1662 arg0)
provideRecipeInputs(RecipeMatcher arg0)
m_5809_(C_1145_ arg0)
private void
c(bqq arg0)
moveItemToEmptySlots(ItemStack arg0)
method_20633(class_1799 arg0)
addToNewSlot(ItemStack stack)
m_19189_(C_1391_ arg0)
private void
d(bqq arg0)
moveItemToOccupiedSlotsWithSameType(ItemStack arg0)
method_20634(class_1799 arg0)
addToExistingSlot(ItemStack stack)
m_19191_(C_1391_ arg0)
private void
a(bqq arg0, bqq arg1)
moveItemsBetweenStacks(ItemStack arg0, ItemStack arg1)
method_20632(class_1799 arg0, class_1799 arg1)
transfer(ItemStack source, ItemStack target)
m_19185_(C_1391_ p_19187_, C_1391_ arg1)
public void
a(ng arg0)
fromTag(ListTag arg0)
method_7659(class_2499 arg0)
readNbtList(NbtList nbtList)
m_7797_(C_4930_ arg0)
public ListTag
g()
createTag()
method_7660()
toNbtList()
m_7927_()