Class SimpleCraftingContainer
java.lang.Object
net.minecraftforge.common.crafting.SimpleCraftingContainer
- All Implemented Interfaces:
Clearable,Container,CraftingContainer,StackedContentsCompatible
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final NonNullList<ItemStack>private final intFields inherited from interface net.minecraft.world.Container
DEFAULT_DISTANCE_LIMIT, LARGE_MAX_STACK_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionSimpleCraftingContainer(int width, int height) SimpleCraftingContainer(int width, int height, NonNullList<ItemStack> items) -
Method Summary
Modifier 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.Container
canPlaceItem, canTakeItem, countItem, getMaxStackSize, hasAnyMatching, hasAnyOf, startOpen, stopOpen
-
Field Details
-
width
private final int width -
height
private final int height -
items
-
-
Constructor Details
-
SimpleCraftingContainer
public SimpleCraftingContainer(int width, int height) -
SimpleCraftingContainer
-
-
Method Details
-
builder
-
getContainerSize
public int getContainerSize()- Specified by:
getContainerSizein interfaceContainer
-
isEmpty
public boolean 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
-
fillStackedContents
- Specified by:
fillStackedContentsin interfaceStackedContentsCompatible
-
getWidth
public int getWidth()- Specified by:
getWidthin interfaceCraftingContainer
-
getHeight
public int getHeight()- Specified by:
getHeightin interfaceCraftingContainer
-
getItems
- Specified by:
getItemsin interfaceCraftingContainer
-