net.minecraft.world

public interface Container

extends Clearable

btc
net.minecraft.world.Container
net.minecraft.class_1263
net.minecraft.inventory.Inventory
net.minecraft.world.IInventory

Field summary

Modifier and TypeField
float
r_
DEFAULT_DISTANCE_BUFFER
field_48319
DEFAULT_MAX_INTERACTION_RANGE

Method summary

Modifier and TypeMethod
int
b()
getContainerSize()
method_5439()
size()
boolean
c()
isEmpty()
method_5442()
isEmpty()
ItemStack
a(int arg0)
getItem(int arg0)
method_5438(int arg0)
getStack(int slot)
ItemStack
a(int arg0, int arg1)
removeItem(int arg0, int arg1)
method_5434(int arg0, int arg1)
removeStack(int slot, int amount)
ItemStack
b(int arg0)
removeItemNoUpdate(int arg0)
method_5441(int arg0)
removeStack(int slot)
void
a(int arg0, cxp arg1)
setItem(int arg0, ItemStack arg1)
method_5447(int arg0, class_1799 arg1)
setStack(int slot, ItemStack stack)
default int
ao_()
getMaxStackSize()
method_5444()
getMaxCountPerStack()
default int
e_(cxp arg0)
getMaxStackSize(ItemStack arg0)
method_58350(class_1799 arg0)
getMaxCount(ItemStack stack)
void
e()
setChanged()
method_5431()
markDirty()
boolean
a(cpx arg0)
stillValid(Player arg0)
method_5443(class_1657 arg0)
canPlayerUse(PlayerEntity player)
default void
c_(cpx arg0)
startOpen(Player arg0)
method_5435(class_1657 arg0)
onOpen(PlayerEntity player)
default void
c(cpx arg0)
stopOpen(Player arg0)
method_5432(class_1657 arg0)
onClose(PlayerEntity player)
default boolean
b(int arg0, cxp arg1)
canPlaceItem(int arg0, ItemStack arg1)
method_5437(int arg0, class_1799 arg1)
isValid(int slot, ItemStack stack)
default boolean
a(btc arg0, int arg1, cxp 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)
default int
a_(cxl arg0)
countItem(Item arg0)
method_18861(class_1792 arg0)
count(Item item)
default boolean
a(Set<cxl> arg0)
hasAnyOf(Set<Item> arg0)
method_18862(Set<class_1792> arg0)
containsAny(Set<Item> items)
default boolean
a_(Predicate<cxp> arg0)
hasAnyMatching(Predicate<ItemStack> arg0)
method_43256(Predicate<class_1799> arg0)
containsAny(Predicate<ItemStack> predicate)
static boolean
a(dux arg0, cpx arg1)
stillValidBlockEntity(BlockEntity arg0, Player arg1)
method_49105(class_2586 arg0, class_1657 arg1)
canPlayerUse(BlockEntity blockEntity, PlayerEntity player)
static boolean
a(dux arg0, cpx 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)