Package net.minecraft.world.inventory
Class ResultContainer
java.lang.Object
net.minecraft.world.inventory.ResultContainer
- All Implemented Interfaces:
Clearable
,Container
,RecipeCraftingHolder
-
Field Summary
Fields inherited from interface net.minecraft.world.Container
DEFAULT_DISTANCE_LIMIT, LARGE_MAX_STACK_SIZE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
int
getItem
(int p_40147_) RecipeHolder<?>
boolean
isEmpty()
removeItem
(int p_40149_, int p_40150_) removeItemNoUpdate
(int p_40160_) void
void
void
setRecipeUsed
(RecipeHolder<?> p_297508_) 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, canTakeItem, countItem, getMaxStackSize, hasAnyMatching, hasAnyOf, startOpen, stopOpen
Methods inherited from interface net.minecraft.world.inventory.RecipeCraftingHolder
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 interfaceRecipeCraftingHolder
-
getRecipeUsed
- Specified by:
getRecipeUsed
in interfaceRecipeCraftingHolder
-