Package net.minecraft.world.inventory
Class ResultContainer
java.lang.Object
net.minecraft.world.inventory.ResultContainer
- All Implemented Interfaces:
Clearable
,Container
,RecipeHolder
-
Field Summary
Fields inherited from interface net.minecraft.world.Container
LARGE_MAX_STACK_SIZE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
int
getItem
(int p_40147_) Recipe<?>
boolean
isEmpty()
removeItem
(int p_40149_, int p_40150_) removeItemNoUpdate
(int p_40160_) void
void
void
setRecipeUsed
(Recipe<?> p_40157_) boolean
stillValid
(Player p_40155_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.Container
canPlaceItem, countItem, getMaxStackSize, hasAnyMatching, hasAnyOf, startOpen, stopOpen
Methods 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:
getContainerSize
in interfaceContainer
-
isEmpty
public boolean isEmpty() -
getItem
-
removeItem
- Specified by:
removeItem
in interfaceContainer
-
removeItemNoUpdate
- Specified by:
removeItemNoUpdate
in interfaceContainer
-
setItem
-
setChanged
public void setChanged()- Specified by:
setChanged
in interfaceContainer
-
stillValid
- Specified by:
stillValid
in interfaceContainer
-
clearContent
public void clearContent()- Specified by:
clearContent
in interfaceClearable
-
setRecipeUsed
- Specified by:
setRecipeUsed
in interfaceRecipeHolder
-
getRecipeUsed
- Specified by:
getRecipeUsed
in interfaceRecipeHolder
-