net.minecraft.world

public class SimpleContainer

implements Container, StackedContentsCompatible

ajn
net.minecraft.world.SimpleContainer
net.minecraft.class_1277
net.minecraft.inventory.BasicInventory
net.minecraft.inventory.Inventory
net.minecraft.server.v1_15_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
stackList
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(ajd arg0)
addListener(ContainerListener arg0)
method_5489(class_1265 arg0)
addListener(InventoryListener arg0)
func_110134_a(IInventoryChangedListener arg0)
public void
b(ajd arg0)
removeListener(ContainerListener arg0)
method_5488(class_1265 arg0)
removeListener(InventoryListener arg0)
func_110132_b(IInventoryChangedListener arg0)
public ItemStack
a(int arg0)
getItem(int arg0)
method_5438(int arg0)
getInvStack(int arg0)
func_70301_a(int arg0)
getItem(int arg0)
public ItemStack
a(int arg0, int arg1)
removeItem(int arg0, int arg1)
method_5434(int arg0, int arg1)
takeInvStack(int arg0, int arg1)
func_70298_a(int arg0, int arg1)
splitStack(int arg0, int arg1)
public ItemStack
a(bef arg0, int arg1)
removeItemType(Item arg0, int arg1)
method_20631(class_1792 arg0, int arg1)
poll(Item item, int count)
func_223374_a(Item arg0, int arg1)
public ItemStack
a(bek arg0)
addItem(ItemStack arg0)
method_5491(class_1799 arg0)
add(ItemStack arg0)
func_174894_a(ItemStack arg0)
public ItemStack
b(int arg0)
removeItemNoUpdate(int arg0)
method_5441(int arg0)
removeInvStack(int arg0)
func_70304_b(int arg0)
splitWithoutUpdate(int arg0)
public void
a(int arg0, bek arg1)
setItem(int arg0, ItemStack arg1)
method_5447(int arg0, class_1799 arg1)
setInvStack(int arg0, ItemStack arg1)
func_70299_a(int arg0, ItemStack arg1)
setItem(int arg0, ItemStack arg1)
public int
O_()
getContainerSize()
method_5439()
getInvSize()
func_70302_i_()
getSize()
public boolean
c()
isEmpty()
method_5442()
isInvEmpty()
func_191420_l()
isNotEmpty()
public void
e()
setChanged()
method_5431()
markDirty()
func_70296_d()
update()
public boolean
a(ayg arg0)
stillValid(Player arg0)
method_5443(class_1657 arg0)
canPlayerUseInv(PlayerEntity arg0)
func_70300_a(PlayerEntity arg0)
public void
N_()
clearContent()
method_5448()
clear()
func_174888_l()
clear()
public void
a(ayi arg0)
fillStackedContents(StackedContents arg0)
method_7683(class_1662 arg0)
provideRecipeInputs(RecipeFinder arg0)
func_194018_a(RecipeItemHelper arg0)
private void
b(bek arg0)
moveItemToEmptySlots(ItemStack arg0)
method_20633(class_1799 arg0)
addToNewSlot(ItemStack stack)
func_223375_b(ItemStack arg0)
private void
c(bek arg0)
moveItemToOccupiedSlotsWithSameType(ItemStack arg0)
method_20634(class_1799 arg0)
addToExistingSlot(ItemStack stack)
func_223372_c(ItemStack arg0)
private void
a(bek arg0, bek 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)