Class SimpleCraftingContainer
java.lang.Object
net.minecraftforge.common.crafting.SimpleCraftingContainer
- All Implemented Interfaces:
Clearable
,Container
,CraftingContainer
,StackedContentsCompatible
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final NonNullList<ItemStack>
private final int
Fields inherited from interface net.minecraft.world.Container
DEFAULT_DISTANCE_LIMIT, LARGE_MAX_STACK_SIZE
-
Constructor Summary
ConstructorDescriptionSimpleCraftingContainer
(int width, int height) SimpleCraftingContainer
(int width, int height, NonNullList<ItemStack> items) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
void
void
fillStackedContents
(StackedContents stacked) int
int
getItem
(int slot) getItems()
int
getWidth()
boolean
isEmpty()
removeItem
(int slot, int count) removeItemNoUpdate
(int slot) void
void
boolean
stillValid
(Player player) 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
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:
getContainerSize
in interfaceContainer
-
isEmpty
public boolean isEmpty() -
getItem
-
removeItem
- Specified by:
removeItem
in interfaceContainer
-
removeItemNoUpdate
- Specified by:
removeItemNoUpdate
in interfaceContainer
-
setItem
-
setChanged
public void setChanged()- Specified by:
setChanged
in interfaceContainer
-
stillValid
- Specified by:
stillValid
in interfaceContainer
-
clearContent
public void clearContent()- Specified by:
clearContent
in interfaceClearable
-
fillStackedContents
- Specified by:
fillStackedContents
in interfaceStackedContentsCompatible
-
getWidth
public int getWidth()- Specified by:
getWidth
in interfaceCraftingContainer
-
getHeight
public int getHeight()- Specified by:
getHeight
in interfaceCraftingContainer
-
getItems
- Specified by:
getItems
in interfaceCraftingContainer
-