net.minecraft.world

public class SimpleContainer

implements Container, StackedContentsCompatible

bss
net.minecraft.world.SimpleContainer
net.minecraft.class_1277
net.minecraft.unmapped.C_rsloiwzx
net.minecraft.inventory.SimpleInventory
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
f_dbfuqwvk
size
size
f_19146_
private final NonNullList<ItemStack>
c
items
field_5828
f_gcfumhpq
heldStacks
stacks
f_19147_
private List<ContainerListener>
d
listeners
field_5829
f_qojmjxfl
listeners
listeners
f_19148_

Constructor summary

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

Method summary

Modifier and TypeMethod
public void
a(bsg arg0)
addListener(ContainerListener arg0)
method_5489(class_1265 arg0)
m_tyntogsy(C_uaqlxobv arg0)
addListener(InventoryChangedListener listener)
addListener(InventoryChangedListener listener)
m_19164_(C_466_ arg0)
public void
b(bsg arg0)
removeListener(ContainerListener arg0)
method_5488(class_1265 arg0)
m_hdajgqnv(C_uaqlxobv arg0)
removeListener(InventoryChangedListener listener)
removeListener(InventoryChangedListener listener)
m_19181_(C_466_ arg0)
public ItemStack
a(int arg0)
getItem(int arg0)
method_5438(int arg0)
m_jzosiplc(int arg0)
getStack(int arg0)
getStack(int arg0)
m_8020_(int arg0)
public List<ItemStack>
f()
removeAllItems()
method_24514()
m_iqnieoui()
clearToList()
clearToList()
m_19195_()
public ItemStack
a(int arg0, int arg1)
removeItem(int arg0, int arg1)
method_5434(int arg0, int arg1)
m_jqhmcoxx(int arg0, int arg1)
removeStack(int arg0, int arg1)
removeStack(int arg0, int arg1)
m_7407_(int p_19160_, int arg1)
public ItemStack
a(cwm arg0, int arg1)
removeItemType(Item arg0, int arg1)
method_20631(class_1792 arg0, int arg1)
m_mpozekoo(C_vorddnax arg0, int arg1)
removeItem(Item item, int count)
removeItem(Item item, int count)
m_19170_(C_1381_ p_19172_, int arg1)
public ItemStack
b(cwq arg0)
addItem(ItemStack arg0)
method_5491(class_1799 arg0)
m_xfunpqty(C_sddaxwyk arg0)
addStack(ItemStack stack)
addStack(ItemStack stack)
m_19173_(C_1391_ arg0)
public boolean
c(cwq arg0)
canAddItem(ItemStack arg0)
method_27070(class_1799 arg0)
m_xhlbevft(C_sddaxwyk arg0)
canInsert(ItemStack stack)
canInsert(ItemStack stack)
m_19183_(C_1391_ arg0)
public ItemStack
b(int arg0)
removeItemNoUpdate(int arg0)
method_5441(int arg0)
m_ujfmycis(int arg0)
removeStack(int arg0)
removeStack(int arg0)
m_8016_(int arg0)
public void
a(int arg0, cwq arg1)
setItem(int arg0, ItemStack arg1)
method_5447(int arg0, class_1799 arg1)
m_akaynoad(int arg0, C_sddaxwyk arg1)
setStack(int arg0, ItemStack arg1)
setStack(int arg0, ItemStack arg1)
m_6836_(int p_19163_, C_1391_ arg1)
public int
b()
getContainerSize()
method_5439()
m_dmbfvefd()
size()
size()
m_6643_()
public boolean
c()
isEmpty()
method_5442()
m_ohnjwggm()
isEmpty()
isEmpty()
m_7983_()
public void
e()
setChanged()
method_5431()
m_phlhitmt()
markDirty()
markDirty()
m_6596_()
public boolean
a(coy arg0)
stillValid(Player arg0)
method_5443(class_1657 arg0)
m_noresdqq(C_jzrpycqo arg0)
canPlayerUse(PlayerEntity arg0)
canPlayerUse(PlayerEntity arg0)
m_6542_(C_1141_ arg0)
public void
a()
clearContent()
method_5448()
m_rufrndtr()
clear()
clear()
m_6211_()
public void
fillStackedContents(cpd arg0)
fillStackedContents(StackedItemContents arg0)
method_7683(class_9875 arg0)
provideRecipeInputs(RecipeFinder arg0)
m_5809_(C_345581_ arg0)
private void
d(cwq arg0)
moveItemToEmptySlots(ItemStack arg0)
method_20633(class_1799 arg0)
m_ozbredpu(C_sddaxwyk arg0)
addToNewSlot(ItemStack stack)
addToNewSlot(ItemStack stack)
m_19189_(C_1391_ arg0)
private void
e(cwq arg0)
moveItemToOccupiedSlotsWithSameType(ItemStack arg0)
method_20634(class_1799 arg0)
m_pdlbkpqj(C_sddaxwyk arg0)
addToExistingSlot(ItemStack stack)
addToExistingSlot(ItemStack stack)
m_19191_(C_1391_ arg0)
private void
a(cwq arg0, cwq arg1)
moveItemsBetweenStacks(ItemStack arg0, ItemStack arg1)
method_20632(class_1799 arg0, class_1799 arg1)
m_zjxklzal(C_sddaxwyk arg0, C_sddaxwyk arg1)
transfer(ItemStack source, ItemStack target)
transfer(ItemStack source, ItemStack target)
m_19185_(C_1391_ p_19187_, C_1391_ arg1)
public void
a(tw arg0, jt$a arg1)
fromTag(ListTag arg0, HolderLookup$Provider arg1)
method_7659(class_2499 arg0, class_7225$class_7874 arg1)
m_mrxizevu(C_hqhtfwlr arg0, C_vtbxyypo$C_etmlgbig arg1)
readNbtList(NbtList list, RegistryWrapper$WrapperLookup registries)
readNbtList(NbtList nbtList, HolderLookup$Provider lookupProvider)
m_7797_(C_4930_ p_328200_, C_213466_$C_254607_ arg1)
public ListTag
a(jt$a arg0)
createTag(HolderLookup$Provider arg0)
method_7660(class_7225$class_7874 arg0)
m_hzsqwpzp(C_vtbxyypo$C_etmlgbig arg0)
toNbtList(RegistryWrapper$WrapperLookup registries)
toNbtList(HolderLookup$Provider lookupProvider)
m_7927_(C_213466_$C_254607_ arg0)
public NonNullList<ItemStack>
g()
getItems()
method_54454()
m_kcvdipnh()
getHeldStacks()
stacks()
m_307332_()