Class ResultContainer
java.lang.Object
net.minecraft.world.inventory.ResultContainer
- All Implemented Interfaces:
Iterable<ItemStack>, Clearable, Container, SlotProvider, RecipeCraftingHolder, ContainerExtension
-
Nested Class Summary
Nested classes/interfaces inherited from interface Container
Container.ContainerIterator -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final NonNullList<ItemStack> private @Nullable RecipeHolder<?> Fields inherited from interface Container
DEFAULT_DISTANCE_BUFFER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintgetItem(int slot) @Nullable RecipeHolder<?> booleanisEmpty()removeItem(int slot, int count) removeItemNoUpdate(int slot) voidvoidvoidsetRecipeUsed(@Nullable RecipeHolder<?> recipeUsed) booleanstillValid(Player player) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Container
canPlaceItem, canTakeItem, countItem, getEntitiesWithContainerOpen, getMaxStackSize, getMaxStackSize, getSlot, hasAnyMatching, hasAnyOf, iterator, startOpen, stopOpenMethods inherited from interface ContainerExtension
onTransfer, setItemMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface RecipeCraftingHolder
awardUsedRecipes, setRecipeUsedMethods inherited from interface SlotProvider
getSlotsFromRange
-
Field Details
-
itemStacks
-
recipeUsed
-
-
Constructor Details
-
ResultContainer
public ResultContainer()
-
-
Method Details
-
getContainerSize
public int getContainerSize()- Specified by:
getContainerSizein interfaceContainer
-
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 interfaceRecipeCraftingHolder
-
getRecipeUsed
- Specified by:
getRecipeUsedin interfaceRecipeCraftingHolder
-