net.minecraft.inventory

public class CraftingInventory

implements RecipeInputInventory

net.minecraft.world.inventory.TransientCraftingContainer
net.minecraft.class_1715
net.minecraft.inventory.CraftingInventory

Field summary

Modifier and TypeField
private final DefaultedList<ItemStack>
items
field_7805
stacks
private final int
width
field_7804
width
private final int
height
field_7803
height
private final ScreenHandler
menu
field_7802
handler

Constructor summary

ModifierConstructor
public (ScreenHandler handler, int width, int height)
private (ScreenHandler handler, int width, int height, DefaultedList<ItemStack> stacks)

Method summary

Modifier and TypeMethod
public int
getContainerSize()
method_5439()
size()
public boolean
isEmpty()
method_5442()
isEmpty()
public ItemStack
getItem(int slot)
method_5438(int arg0)
getStack(int arg0)
public ItemStack
removeItemNoUpdate(int slot)
method_5441(int arg0)
removeStack(int arg0)
public ItemStack
removeItem(int slot, int count)
method_5434(int arg0, int arg1)
removeStack(int arg0, int arg1)
public void
setItem(int slot, ItemStack itemStack)
method_5447(int arg0, class_1799 arg1)
setStack(int arg0, ItemStack arg1)
public void
setChanged()
method_5431()
markDirty()
public boolean
stillValid(Player player)
method_5443(class_1657 arg0)
canPlayerUse(PlayerEntity arg0)
public void
clearContent()
method_5448()
clear()
public int
getHeight()
method_17397()
getHeight()
public int
getWidth()
method_17398()
getWidth()
public List<ItemStack>
getItems()
method_51305()
getHeldStacks()
public void
fillStackedContents(StackedItemContents contents)
method_7683(class_9875 arg0)
provideRecipeInputs(RecipeFinder arg0)