net.minecraft.world

public class SimpleContainer

implements Container, StackedContentsCompatible

anm
net.minecraft.world.SimpleContainer
net.minecraft.class_1277
net.minecraft.inventory.SimpleInventory
net.minecraft.inventory.Inventory
net.minecraft.server.v1_16_R1.InventorySubcontainer

Field summary

Modifier and TypeField
private final int
a
size
field_5831
size
field_70481_b
private final NonNullList<ItemStack>
b
items
field_5828
stacks
field_70482_c
items
private List<ContainerListener>
c
listeners
field_5829
listeners
field_70480_d

Constructor summary

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

Method summary

Modifier and TypeMethod
public void
a(anb arg0)
addListener(ContainerListener arg0)
method_5489(class_1265 arg0)
addListener(InventoryChangedListener listener)
func_110134_a(IInventoryChangedListener arg0)
public void
b(anb arg0)
removeListener(ContainerListener arg0)
method_5488(class_1265 arg0)
removeListener(InventoryChangedListener listener)
func_110132_b(IInventoryChangedListener arg0)
public ItemStack
a(int arg0)
getItem(int arg0)
method_5438(int arg0)
getStack(int arg0)
func_70301_a(int arg0)
getItem(int arg0)
public List<ItemStack>
f()
removeAllItems()
method_24514()
clearToList()
func_233543_f_()
public ItemStack
a(int arg0, int arg1)
removeItem(int arg0, int arg1)
method_5434(int arg0, int arg1)
removeStack(int arg0, int arg1)
func_70298_a(int arg0, int arg1)
splitStack(int arg0, int arg1)
public ItemStack
a(bke arg0, int arg1)
removeItemType(Item arg0, int arg1)
method_20631(class_1792 arg0, int arg1)
removeItem(Item item, int count)
func_223374_a(Item arg0, int arg1)
public ItemStack
a(bki arg0)
addItem(ItemStack arg0)
method_5491(class_1799 arg0)
addStack(ItemStack stack)
func_174894_a(ItemStack arg0)
public boolean
b(bki arg0)
canAddItem(ItemStack arg0)
method_27070(class_1799 arg0)
canInsert(ItemStack stack)
func_233541_b_(ItemStack arg0)
public ItemStack
b(int arg0)
removeItemNoUpdate(int arg0)
method_5441(int arg0)
removeStack(int arg0)
func_70304_b(int arg0)
splitWithoutUpdate(int arg0)
public void
a(int arg0, bki arg1)
setItem(int arg0, ItemStack arg1)
method_5447(int arg0, class_1799 arg1)
setStack(int arg0, ItemStack arg1)
func_70299_a(int arg0, ItemStack arg1)
setItem(int arg0, ItemStack arg1)
public int
ab_()
getContainerSize()
method_5439()
size()
func_70302_i_()
getSize()
public boolean
c()
isEmpty()
method_5442()
isEmpty()
func_191420_l()
isEmpty()
public void
Z_()
setChanged()
method_5431()
markDirty()
func_70296_d()
update()
public boolean
a(bec arg0)
stillValid(Player arg0)
method_5443(class_1657 arg0)
canPlayerUse(PlayerEntity arg0)
func_70300_a(PlayerEntity arg0)
public void
aa_()
clearContent()
method_5448()
clear()
func_174888_l()
clear()
public void
a(bee arg0)
fillStackedContents(StackedContents arg0)
method_7683(class_1662 arg0)
provideRecipeInputs(RecipeFinder arg0)
func_194018_a(RecipeItemHelper arg0)
private void
c(bki arg0)
moveItemToEmptySlots(ItemStack arg0)
method_20633(class_1799 arg0)
addToNewSlot(ItemStack stack)
func_223375_b(ItemStack arg0)
private void
d(bki arg0)
moveItemToOccupiedSlotsWithSameType(ItemStack arg0)
method_20634(class_1799 arg0)
addToExistingSlot(ItemStack stack)
func_223372_c(ItemStack arg0)
private boolean
a(bki arg0, bki arg1)
isSameItem(ItemStack arg0, ItemStack arg1)
method_24825(class_1799 arg0, class_1799 arg1)
canCombine(ItemStack one, ItemStack two)
func_233540_a_(ItemStack arg0, ItemStack arg1)
private void
b(bki arg0, bki arg1)
moveItemsBetweenStacks(ItemStack arg0, ItemStack arg1)
method_20632(class_1799 arg0, class_1799 arg1)
transfer(ItemStack source, ItemStack target)
func_223373_a(ItemStack arg0, ItemStack arg1)
public void
a(lk arg0)
fromTag(ListTag arg0)
method_7659(class_2499 arg0)
readTags(ListTag tags)
func_70486_a(ListNBT arg0)
public ListTag
g()
createTag()
method_7660()
getTags()
func_70487_g()