net.minecraft.inventory

public interface Inventory

extends Clearable, Iterable<ItemStack>, StackReferenceGetter

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

Field summary

Modifier and TypeField
float
DEFAULT_DISTANCE_BUFFER
field_48319
DEFAULT_MAX_INTERACTION_RANGE

Method summary

Modifier and TypeMethod
int
getContainerSize()
method_5439()
size()
boolean
isEmpty()
method_5442()
isEmpty()
ItemStack
getItem(int slot)
method_5438(int arg0)
getStack(int slot)
ItemStack
removeItem(int slot, int count)
method_5434(int arg0, int arg1)
removeStack(int slot, int amount)
ItemStack
removeItemNoUpdate(int slot)
method_5441(int arg0)
removeStack(int slot)
void
setItem(int slot, ItemStack itemStack)
method_5447(int arg0, class_1799 arg1)
setStack(int slot, ItemStack stack)
default int
getMaxStackSize()
method_5444()
getMaxCountPerStack()
default int
getMaxStackSize(ItemStack itemStack)
method_58350(class_1799 arg0)
getMaxCount(ItemStack stack)
void
setChanged()
method_5431()
markDirty()
boolean
stillValid(Player player)
method_5443(class_1657 arg0)
canPlayerUse(PlayerEntity player)
default void
startOpen(ContainerUser containerUser)
method_5435(class_11565 arg0)
onOpen(ContainerUser user)
default void
stopOpen(ContainerUser containerUser)
method_5432(class_11565 arg0)
onClose(ContainerUser user)
default List<ContainerUser>
getEntitiesWithContainerOpen()
method_72379()
getViewingUsers()
default boolean
canPlaceItem(int slot, ItemStack itemStack)
method_5437(int arg0, class_1799 arg1)
isValid(int slot, ItemStack stack)
default boolean
canTakeItem(Container into, int slot, ItemStack itemStack)
method_49104(class_1263 arg0, int arg1, class_1799 arg2)
canTransferTo(Inventory hopperInventory, int slot, ItemStack stack)
default int
countItem(Item item)
method_18861(class_1792 arg0)
count(Item item)
default boolean
hasAnyOf(Set<Item> item)
method_18862(Set<class_1792> arg0)
containsAny(Set<Item> items)
default boolean
hasAnyMatching(Predicate<ItemStack> predicate)
method_43256(Predicate<class_1799> arg0)
containsAny(Predicate<ItemStack> predicate)
static boolean
stillValidBlockEntity(BlockEntity blockEntity, Player player)
method_49105(class_2586 arg0, class_1657 arg1)
canPlayerUse(BlockEntity blockEntity, PlayerEntity player)
static boolean
stillValidBlockEntity(BlockEntity blockEntity, Player player, float distanceBuffer)
method_49106(class_2586 arg0, class_1657 arg1, float arg2)
canPlayerUse(BlockEntity blockEntity, PlayerEntity player, float range)
default StackReference
getSlot(int slot)
method_32318(int arg0)
getStackReference(int arg0)
default Iterator<ItemStack>
iterator()
private static boolean
lambda$hasAnyOf$0(Set arg0, ItemStack arg1)
method_43255(Set arg0, class_1799 arg1)
method_43255(Set arg0, ItemStack stack)