Package net.minecraftforge.items.wrapper
Class RecipeWrapper
java.lang.Object
net.minecraftforge.items.wrapper.RecipeWrapper
-
Field Summary
FieldsFields inherited from interface net.minecraft.world.Container
LARGE_MAX_STACK_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanPlaceItem(int slot, ItemStack stack) voidintReturns the size of this inventory.getItem(int slot) Returns the stack in this slot.intbooleanisEmpty()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.voidvoidSets the contents of this slot to the provided stack.voidbooleanstillValid(Player player) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.Container
countItem, hasAnyMatching, hasAnyOf
-
Field Details
-
inv
-
-
Constructor Details
-
RecipeWrapper
-
-
Method Details
-
getContainerSize
public int getContainerSize()Returns the size of this inventory.- Specified by:
getContainerSizein 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:
removeItemin 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:
removeItemNoUpdatein interfaceContainer
-
isEmpty
public boolean isEmpty() -
canPlaceItem
- Specified by:
canPlaceItemin interfaceContainer
-
clearContent
public void clearContent()- Specified by:
clearContentin interfaceClearable
-
getMaxStackSize
public int getMaxStackSize()- Specified by:
getMaxStackSizein interfaceContainer
-
setChanged
public void setChanged()- Specified by:
setChangedin interfaceContainer
-
stillValid
- Specified by:
stillValidin interfaceContainer
-
startOpen
-
stopOpen
-