Class RecipeWrapper
java.lang.Object
net.neoforged.neoforge.items.wrapper.RecipeWrapper
-
Field Summary
Fields inherited from interface net.minecraft.world.Container
DEFAULT_DISTANCE_BUFFER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canPlaceItem
(int slot, ItemStack stack) void
int
Returns the size of this inventory.getItem
(int slot) Returns the stack in this slot.int
boolean
isEmpty()
removeItem
(int slot, int count) Attempts to remove n items from the specified slot.removeItemNoUpdate
(int index) Removes the stack contained in this slot from the underlying handler, and returns it.void
void
Sets the contents of this slot to the provided stack.void
boolean
stillValid
(Player player) void
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
canTakeItem, countItem, getMaxStackSize, hasAnyMatching, hasAnyOf
-
Field Details
-
inv
-
-
Constructor Details
-
RecipeWrapper
-
-
Method Details
-
getContainerSize
public int getContainerSize()Returns the size of this inventory.- Specified by:
getContainerSize
in interfaceContainer
-
getItem
Returns the stack in this slot. This stack should be a modifiable reference, not a copy of a stack in your inventory. -
removeItem
Attempts to remove n items from the specified slot. Returns the split stack that was removed. Modifies the inventory.- Specified by:
removeItem
in interfaceContainer
-
setItem
Sets the contents of this slot to the provided stack. -
removeItemNoUpdate
Removes the stack contained in this slot from the underlying handler, and returns it.- Specified by:
removeItemNoUpdate
in interfaceContainer
-
isEmpty
public boolean isEmpty() -
canPlaceItem
- Specified by:
canPlaceItem
in interfaceContainer
-
clearContent
public void clearContent()- Specified by:
clearContent
in interfaceClearable
-
getMaxStackSize
public int getMaxStackSize()- Specified by:
getMaxStackSize
in interfaceContainer
-
setChanged
public void setChanged()- Specified by:
setChanged
in interfaceContainer
-
stillValid
- Specified by:
stillValid
in interfaceContainer
-
startOpen
-
stopOpen
-