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 IInventory
container1
private IInventory
container2
-
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 boolean
canPlaceItem(int p_94041_1_, ItemStack p_94041_2_)
void
clearContent()
boolean
contains(IInventory p_90010_1_)
int
getContainerSize()
ItemStack
getItem(int p_70301_1_)
int
getMaxStackSize()
boolean
isEmpty()
ItemStack
removeItem(int p_70298_1_, int p_70298_2_)
ItemStack
removeItemNoUpdate(int p_70304_1_)
void
setChanged()
void
setItem(int p_70299_1_, ItemStack p_70299_2_)
void
startOpen(PlayerEntity p_174889_1_)
boolean
stillValid(PlayerEntity p_70300_1_)
void
stopOpen(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:
getContainerSize
in interfaceIInventory
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceIInventory
-
contains
public boolean contains(IInventory p_90010_1_)
-
getItem
public ItemStack getItem(int p_70301_1_)
- Specified by:
getItem
in interfaceIInventory
-
removeItem
public ItemStack removeItem(int p_70298_1_, int p_70298_2_)
- Specified by:
removeItem
in interfaceIInventory
-
removeItemNoUpdate
public ItemStack removeItemNoUpdate(int p_70304_1_)
- Specified by:
removeItemNoUpdate
in interfaceIInventory
-
setItem
public void setItem(int p_70299_1_, ItemStack p_70299_2_)
- Specified by:
setItem
in interfaceIInventory
-
getMaxStackSize
public int getMaxStackSize()
- Specified by:
getMaxStackSize
in interfaceIInventory
-
setChanged
public void setChanged()
- Specified by:
setChanged
in interfaceIInventory
-
stillValid
public boolean stillValid(PlayerEntity p_70300_1_)
- Specified by:
stillValid
in interfaceIInventory
-
startOpen
public void startOpen(PlayerEntity p_174889_1_)
- Specified by:
startOpen
in interfaceIInventory
-
stopOpen
public void stopOpen(PlayerEntity p_174886_1_)
- Specified by:
stopOpen
in interfaceIInventory
-
canPlaceItem
public boolean canPlaceItem(int p_94041_1_, ItemStack p_94041_2_)
- Specified by:
canPlaceItem
in interfaceIInventory
-
clearContent
public void clearContent()
- Specified by:
clearContent
in interfaceIClearable
-
-