Package net.minecraft.block
Class ComposterBlock.FullInventory
- java.lang.Object
-
- net.minecraft.inventory.Inventory
-
- net.minecraft.block.ComposterBlock.FullInventory
-
- All Implemented Interfaces:
IClearable
,IInventory
,IRecipeHelperPopulator
,ISidedInventory
- Enclosing class:
- ComposterBlock
static class ComposterBlock.FullInventory extends Inventory implements ISidedInventory
-
-
Constructor Summary
Constructors Constructor Description FullInventory(BlockState p_i50463_1_, IWorld p_i50463_2_, BlockPos p_i50463_3_, ItemStack p_i50463_4_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canPlaceItemThroughFace(int p_180462_1_, ItemStack p_180462_2_, Direction p_180462_3_)
boolean
canTakeItemThroughFace(int p_180461_1_, ItemStack p_180461_2_, Direction p_180461_3_)
int
getMaxStackSize()
int[]
getSlotsForFace(Direction p_180463_1_)
void
setChanged()
-
Methods inherited from class net.minecraft.inventory.Inventory
addItem, addListener, canAddItem, clearContent, createTag, fillStackedContents, fromTag, getContainerSize, getItem, isEmpty, removeAllItems, removeItem, removeItemNoUpdate, removeItemType, removeListener, setItem, stillValid, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.minecraft.inventory.IClearable
clearContent
-
Methods inherited from interface net.minecraft.inventory.IInventory
canPlaceItem, countItem, getContainerSize, getItem, hasAnyOf, isEmpty, removeItem, removeItemNoUpdate, setItem, startOpen, stillValid, stopOpen
-
-
-
-
Field Detail
-
state
private final BlockState state
-
level
private final IWorld level
-
pos
private final BlockPos pos
-
changed
private boolean changed
-
-
Constructor Detail
-
FullInventory
public FullInventory(BlockState p_i50463_1_, IWorld p_i50463_2_, BlockPos p_i50463_3_, ItemStack p_i50463_4_)
-
-
Method Detail
-
getMaxStackSize
public int getMaxStackSize()
- Specified by:
getMaxStackSize
in interfaceIInventory
-
getSlotsForFace
public int[] getSlotsForFace(Direction p_180463_1_)
- Specified by:
getSlotsForFace
in interfaceISidedInventory
-
canPlaceItemThroughFace
public boolean canPlaceItemThroughFace(int p_180462_1_, ItemStack p_180462_2_, @Nullable Direction p_180462_3_)
- Specified by:
canPlaceItemThroughFace
in interfaceISidedInventory
-
canTakeItemThroughFace
public boolean canTakeItemThroughFace(int p_180461_1_, ItemStack p_180461_2_, Direction p_180461_3_)
- Specified by:
canTakeItemThroughFace
in interfaceISidedInventory
-
setChanged
public void setChanged()
- Specified by:
setChanged
in interfaceIInventory
- Overrides:
setChanged
in classInventory
-
-