Class SimpleCraftingContainer
java.lang.Object
net.minecraftforge.common.crafting.SimpleCraftingContainer
- All Implemented Interfaces:
- Clearable,- Container,- CraftingContainer,- StackedContentsCompatible
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final intprivate final NonNullList<ItemStack>private final intFields inherited from interface net.minecraft.world.ContainerDEFAULT_DISTANCE_LIMIT, LARGE_MAX_STACK_SIZE
- 
Constructor SummaryConstructorsConstructorDescriptionSimpleCraftingContainer(int width, int height) SimpleCraftingContainer(int width, int height, NonNullList<ItemStack> items) 
- 
Method SummaryModifier and TypeMethodDescriptionbuilder()voidvoidfillStackedContents(StackedContents stacked) intintgetItem(int slot) getItems()intgetWidth()booleanisEmpty()removeItem(int slot, int count) removeItemNoUpdate(int slot) voidvoidbooleanstillValid(Player player) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.ContainercanPlaceItem, canTakeItem, countItem, getMaxStackSize, hasAnyMatching, hasAnyOf, startOpen, stopOpen
- 
Field Details- 
widthprivate final int width
- 
heightprivate final int height
- 
items
 
- 
- 
Constructor Details- 
SimpleCraftingContainerpublic SimpleCraftingContainer(int width, int height) 
- 
SimpleCraftingContainer
 
- 
- 
Method Details- 
builder
- 
getContainerSizepublic int getContainerSize()- Specified by:
- getContainerSizein interface- Container
 
- 
isEmptypublic boolean isEmpty()
- 
getItem
- 
removeItem- Specified by:
- removeItemin interface- Container
 
- 
removeItemNoUpdate- Specified by:
- removeItemNoUpdatein interface- Container
 
- 
setItem
- 
setChangedpublic void setChanged()- Specified by:
- setChangedin interface- Container
 
- 
stillValid- Specified by:
- stillValidin interface- Container
 
- 
clearContentpublic void clearContent()- Specified by:
- clearContentin interface- Clearable
 
- 
fillStackedContents- Specified by:
- fillStackedContentsin interface- StackedContentsCompatible
 
- 
getWidthpublic int getWidth()- Specified by:
- getWidthin interface- CraftingContainer
 
- 
getHeightpublic int getHeight()- Specified by:
- getHeightin interface- CraftingContainer
 
- 
getItems- Specified by:
- getItemsin interface- CraftingContainer
 
 
-