Package net.minecraft.inventory
Class DoubleSidedInventory
- java.lang.Object
-
- net.minecraft.inventory.DoubleSidedInventory
-
- All Implemented Interfaces:
IClearable,IInventory
public class DoubleSidedInventory extends java.lang.Object implements IInventory
-
-
Field Summary
Fields Modifier and Type Field Description private IInventorycontainer1private IInventorycontainer2
-
Constructor Summary
Constructors Constructor Description DoubleSidedInventory(IInventory p_i50399_1_, IInventory p_i50399_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanPlaceItem(int p_94041_1_, ItemStack p_94041_2_)voidclearContent()booleancontains(IInventory p_90010_1_)intgetContainerSize()ItemStackgetItem(int p_70301_1_)intgetMaxStackSize()booleanisEmpty()ItemStackremoveItem(int p_70298_1_, int p_70298_2_)ItemStackremoveItemNoUpdate(int p_70304_1_)voidsetChanged()voidsetItem(int p_70299_1_, ItemStack p_70299_2_)voidstartOpen(PlayerEntity p_174889_1_)booleanstillValid(PlayerEntity p_70300_1_)voidstopOpen(PlayerEntity p_174886_1_)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraft.inventory.IInventory
countItem, hasAnyOf
-
-
-
-
Field Detail
-
container1
private final IInventory container1
-
container2
private final IInventory container2
-
-
Constructor Detail
-
DoubleSidedInventory
public DoubleSidedInventory(IInventory p_i50399_1_, IInventory p_i50399_2_)
-
-
Method Detail
-
getContainerSize
public int getContainerSize()
- Specified by:
getContainerSizein interfaceIInventory
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceIInventory
-
contains
public boolean contains(IInventory p_90010_1_)
-
getItem
public ItemStack getItem(int p_70301_1_)
- Specified by:
getItemin interfaceIInventory
-
removeItem
public ItemStack removeItem(int p_70298_1_, int p_70298_2_)
- Specified by:
removeItemin interfaceIInventory
-
removeItemNoUpdate
public ItemStack removeItemNoUpdate(int p_70304_1_)
- Specified by:
removeItemNoUpdatein interfaceIInventory
-
setItem
public void setItem(int p_70299_1_, ItemStack p_70299_2_)- Specified by:
setItemin interfaceIInventory
-
getMaxStackSize
public int getMaxStackSize()
- Specified by:
getMaxStackSizein interfaceIInventory
-
setChanged
public void setChanged()
- Specified by:
setChangedin interfaceIInventory
-
stillValid
public boolean stillValid(PlayerEntity p_70300_1_)
- Specified by:
stillValidin interfaceIInventory
-
startOpen
public void startOpen(PlayerEntity p_174889_1_)
- Specified by:
startOpenin interfaceIInventory
-
stopOpen
public void stopOpen(PlayerEntity p_174886_1_)
- Specified by:
stopOpenin interfaceIInventory
-
canPlaceItem
public boolean canPlaceItem(int p_94041_1_, ItemStack p_94041_2_)- Specified by:
canPlaceItemin interfaceIInventory
-
clearContent
public void clearContent()
- Specified by:
clearContentin interfaceIClearable
-
-