Package net.minecraft.world.inventory
Class ResultContainer
java.lang.Object
net.minecraft.world.inventory.ResultContainer
- All Implemented Interfaces:
Clearable,Container,RecipeHolder
-
Field Summary
FieldsFields inherited from interface net.minecraft.world.Container
LARGE_MAX_STACK_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintgetItem(int p_40147_) Recipe<?>booleanisEmpty()removeItem(int p_40149_, int p_40150_) removeItemNoUpdate(int p_40160_) voidvoidvoidsetRecipeUsed(Recipe<?> p_40157_) booleanstillValid(Player p_40155_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.Container
canPlaceItem, countItem, getMaxStackSize, hasAnyMatching, hasAnyOf, startOpen, stopOpenMethods inherited from interface net.minecraft.world.inventory.RecipeHolder
awardUsedRecipes, setRecipeUsed
-
Field Details
-
itemStacks
-
recipeUsed
-
-
Constructor Details
-
ResultContainer
public ResultContainer()
-
-
Method Details
-
getContainerSize
public int getContainerSize()- Specified by:
getContainerSizein interfaceContainer
-
isEmpty
public boolean isEmpty() -
getItem
-
removeItem
- Specified by:
removeItemin interfaceContainer
-
removeItemNoUpdate
- Specified by:
removeItemNoUpdatein interfaceContainer
-
setItem
-
setChanged
public void setChanged()- Specified by:
setChangedin interfaceContainer
-
stillValid
- Specified by:
stillValidin interfaceContainer
-
clearContent
public void clearContent()- Specified by:
clearContentin interfaceClearable
-
setRecipeUsed
- Specified by:
setRecipeUsedin interfaceRecipeHolder
-
getRecipeUsed
- Specified by:
getRecipeUsedin interfaceRecipeHolder
-