net.minecraft.world

public interface Container

extends Clearable

bgr
net.minecraft.world.Container
net.minecraft.class_1263
net.minecraft.inventory.Inventory
net.minecraft.src.C_464_
net.minecraft.world.IInventory

Field summary

Modifier and TypeField
int
m_
LARGE_MAX_STACK_SIZE
field_29952
MAX_COUNT_PER_STACK
f_146642_
int
n_
DEFAULT_DISTANCE_LIMIT
field_42619
field_42619
f_271421_

Method summary

Modifier and TypeMethod
int
b()
getContainerSize()
method_5439()
size()
m_6643_()
boolean
af_()
isEmpty()
method_5442()
isEmpty()
m_7983_()
ItemStack
a(int arg0)
getItem(int arg0)
method_5438(int arg0)
getStack(int slot)
m_8020_(int arg0)
ItemStack
a(int arg0, int arg1)
removeItem(int arg0, int arg1)
method_5434(int arg0, int arg1)
removeStack(int slot, int amount)
m_7407_(int p_18943_, int arg1)
ItemStack
b(int arg0)
removeItemNoUpdate(int arg0)
method_5441(int arg0)
removeStack(int slot)
m_8016_(int arg0)
void
a(int arg0, cjf arg1)
setItem(int arg0, ItemStack arg1)
method_5447(int arg0, class_1799 arg1)
setStack(int slot, ItemStack stack)
m_6836_(int p_18945_, C_1391_ arg1)
default int
ag_()
getMaxStackSize()
method_5444()
getMaxCountPerStack()
m_6893_()
void
e()
setChanged()
method_5431()
markDirty()
m_6596_()
boolean
a(cbu arg0)
stillValid(Player arg0)
method_5443(class_1657 arg0)
canPlayerUse(PlayerEntity player)
m_6542_(C_1141_ arg0)
default void
d_(cbu arg0)
startOpen(Player arg0)
method_5435(class_1657 arg0)
onOpen(PlayerEntity player)
m_5856_(C_1141_ arg0)
default void
c(cbu arg0)
stopOpen(Player arg0)
method_5432(class_1657 arg0)
onClose(PlayerEntity player)
m_5785_(C_1141_ arg0)
default boolean
b(int arg0, cjf arg1)
canPlaceItem(int arg0, ItemStack arg1)
method_5437(int arg0, class_1799 arg1)
isValid(int slot, ItemStack stack)
m_7013_(int p_18953_, C_1391_ arg1)
default boolean
a(bgr arg0, int arg1, cjf arg2)
canTakeItem(Container arg0, int arg1, ItemStack arg2)
method_49104(class_1263 arg0, int arg1, class_1799 arg2)
canTransferTo(Inventory hopperInventory, int slot, ItemStack stack)
m_271862_(C_464_ p_272681_, int p_273702_, C_1391_ arg2)
default int
a_(cja arg0)
countItem(Item arg0)
method_18861(class_1792 arg0)
count(Item item)
m_18947_(C_1381_ arg0)
default boolean
a(Set<cja> arg0)
hasAnyOf(Set<Item> arg0)
method_18862(Set<class_1792> arg0)
containsAny(Set<Item> items)
m_18949_(Set<C_1381_> arg0)
default boolean
a_(Predicate<cjf> arg0)
hasAnyMatching(Predicate<ItemStack> arg0)
method_43256(Predicate<class_1799> arg0)
containsAny(Predicate<ItemStack> predicate)
m_216874_(Predicate<C_1391_> arg0)
static boolean
a(dcv arg0, cbu arg1)
stillValidBlockEntity(BlockEntity arg0, Player arg1)
method_49105(class_2586 arg0, class_1657 arg1)
canPlayerUse(BlockEntity blockEntity, PlayerEntity player)
m_272074_(C_1991_ p_273154_, C_1141_ p_273222_)
static boolean
a(dcv arg0, cbu arg1, int arg2)
stillValidBlockEntity(BlockEntity arg0, Player arg1, int arg2)
method_49106(class_2586 arg0, class_1657 arg1, int arg2)
canPlayerUse(BlockEntity blockEntity, PlayerEntity player, int range)
m_271806_(C_1991_ p_272877_, C_1141_ p_272670_, int p_273411_)