net.minecraft.world

public interface Container

extends Clearable

bqk
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
float
p_
DEFAULT_DISTANCE_BUFFER
field_48319
DEFAULT_MAX_INTERACTION_RANGE
f_315896_

Method summary

Modifier and TypeMethod
int
b()
getContainerSize()
method_5439()
size()
m_6643_()
boolean
c()
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, cuq 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
al_()
getMaxStackSize()
method_5444()
getMaxCountPerStack()
m_6893_()
default int
e_(cuq arg0)
getMaxStackSize(ItemStack arg0)
method_58350(class_1799 arg0)
getMaxCount(ItemStack stack)
m_322387_(C_1391_ arg0)
void
e()
setChanged()
method_5431()
markDirty()
m_6596_()
boolean
a(cmx arg0)
stillValid(Player arg0)
method_5443(class_1657 arg0)
canPlayerUse(PlayerEntity player)
m_6542_(C_1141_ arg0)
default void
d_(cmx arg0)
startOpen(Player arg0)
method_5435(class_1657 arg0)
onOpen(PlayerEntity player)
m_5856_(C_1141_ arg0)
default void
c(cmx arg0)
stopOpen(Player arg0)
method_5432(class_1657 arg0)
onClose(PlayerEntity player)
m_5785_(C_1141_ arg0)
default boolean
b(int arg0, cuq 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(bqk arg0, int arg1, cuq 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_(cul arg0)
countItem(Item arg0)
method_18861(class_1792 arg0)
count(Item item)
m_18947_(C_1381_ arg0)
default boolean
a(Set<cul> 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<cuq> arg0)
hasAnyMatching(Predicate<ItemStack> arg0)
method_43256(Predicate<class_1799> arg0)
containsAny(Predicate<ItemStack> predicate)
m_216874_(Predicate<C_1391_> arg0)
static boolean
a(dqh arg0, cmx 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(dqh arg0, cmx arg1, float arg2)
stillValidBlockEntity(BlockEntity arg0, Player arg1, float arg2)
method_49106(class_2586 arg0, class_1657 arg1, float arg2)
canPlayerUse(BlockEntity blockEntity, PlayerEntity player, float range)
m_271806_(C_1991_ p_272877_, C_1141_ p_272670_, float p_328395_)