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
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFullInventory(BlockState p_i50463_1_, IWorld p_i50463_2_, BlockPos p_i50463_3_, ItemStack p_i50463_4_) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanPlaceItemThroughFace(int p_180462_1_, ItemStack p_180462_2_, Direction p_180462_3_) booleancanTakeItemThroughFace(int p_180461_1_, ItemStack p_180461_2_, Direction p_180461_3_) intint[]getSlotsForFace(Direction p_180463_1_) voidMethods inherited from class net.minecraft.inventory.Inventory
addItem, addListener, canAddItem, clearContent, createTag, fillStackedContents, fromTag, getContainerSize, getItem, isEmpty, removeAllItems, removeItem, removeItemNoUpdate, removeItemType, removeListener, setItem, stillValid, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.inventory.IClearable
clearContentMethods inherited from interface net.minecraft.inventory.IInventory
canPlaceItem, countItem, getContainerSize, getItem, hasAnyOf, isEmpty, removeItem, removeItemNoUpdate, setItem, startOpen, stillValid, stopOpen
-
Field Details
-
state
-
level
-
pos
-
changed
private boolean changed
-
-
Constructor Details
-
FullInventory
public FullInventory(BlockState p_i50463_1_, IWorld p_i50463_2_, BlockPos p_i50463_3_, ItemStack p_i50463_4_)
-
-
Method Details
-
getMaxStackSize
public int getMaxStackSize()- Specified by:
getMaxStackSizein interfaceIInventory
-
getSlotsForFace
- Specified by:
getSlotsForFacein interfaceISidedInventory
-
canPlaceItemThroughFace
public boolean canPlaceItemThroughFace(int p_180462_1_, ItemStack p_180462_2_, @Nullable Direction p_180462_3_) - Specified by:
canPlaceItemThroughFacein interfaceISidedInventory
-
canTakeItemThroughFace
public boolean canTakeItemThroughFace(int p_180461_1_, ItemStack p_180461_2_, Direction p_180461_3_) - Specified by:
canTakeItemThroughFacein interfaceISidedInventory
-
setChanged
public void setChanged()- Specified by:
setChangedin interfaceIInventory- Overrides:
setChangedin classInventory
-