Package net.minecraft.inventory
Class CraftResultInventory
- java.lang.Object
-
- net.minecraft.inventory.CraftResultInventory
-
- All Implemented Interfaces:
IClearable
,IInventory
,IRecipeHolder
public class CraftResultInventory extends java.lang.Object implements IInventory, IRecipeHolder
-
-
Field Summary
Fields Modifier and Type Field Description private NonNullList<ItemStack>
itemStacks
private IRecipe<?>
recipeUsed
-
Constructor Summary
Constructors Constructor Description CraftResultInventory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearContent()
int
getContainerSize()
ItemStack
getItem(int p_70301_1_)
IRecipe<?>
getRecipeUsed()
boolean
isEmpty()
ItemStack
removeItem(int p_70298_1_, int p_70298_2_)
ItemStack
removeItemNoUpdate(int p_70304_1_)
void
setChanged()
void
setItem(int p_70299_1_, ItemStack p_70299_2_)
void
setRecipeUsed(IRecipe<?> p_193056_1_)
boolean
stillValid(PlayerEntity p_70300_1_)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraft.inventory.IInventory
canPlaceItem, countItem, getMaxStackSize, hasAnyOf, startOpen, stopOpen
-
Methods inherited from interface net.minecraft.inventory.IRecipeHolder
awardUsedRecipes, setRecipeUsed
-
-
-
-
Field Detail
-
itemStacks
private final NonNullList<ItemStack> itemStacks
-
recipeUsed
@Nullable private IRecipe<?> recipeUsed
-
-
Method Detail
-
getContainerSize
public int getContainerSize()
- Specified by:
getContainerSize
in interfaceIInventory
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceIInventory
-
getItem
public ItemStack getItem(int p_70301_1_)
- Specified by:
getItem
in interfaceIInventory
-
removeItem
public ItemStack removeItem(int p_70298_1_, int p_70298_2_)
- Specified by:
removeItem
in interfaceIInventory
-
removeItemNoUpdate
public ItemStack removeItemNoUpdate(int p_70304_1_)
- Specified by:
removeItemNoUpdate
in interfaceIInventory
-
setItem
public void setItem(int p_70299_1_, ItemStack p_70299_2_)
- Specified by:
setItem
in interfaceIInventory
-
setChanged
public void setChanged()
- Specified by:
setChanged
in interfaceIInventory
-
stillValid
public boolean stillValid(PlayerEntity p_70300_1_)
- Specified by:
stillValid
in interfaceIInventory
-
clearContent
public void clearContent()
- Specified by:
clearContent
in interfaceIClearable
-
setRecipeUsed
public void setRecipeUsed(@Nullable IRecipe<?> p_193056_1_)
- Specified by:
setRecipeUsed
in interfaceIRecipeHolder
-
getRecipeUsed
@Nullable public IRecipe<?> getRecipeUsed()
- Specified by:
getRecipeUsed
in interfaceIRecipeHolder
-
-