public class EmptyInventory
extends java.lang.Object
implements net.minecraft.inventory.Inventory
| Modifier and Type | Field and Description |
|---|---|
static EmptyInventory |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canPlayerUse(net.minecraft.entity.player.PlayerEntity player) |
void |
clear() |
net.minecraft.item.ItemStack |
getStack(int slot) |
boolean |
isEmpty() |
void |
markDirty() |
net.minecraft.item.ItemStack |
removeStack(int slot) |
net.minecraft.item.ItemStack |
removeStack(int slot,
int count) |
void |
setStack(int slot,
net.minecraft.item.ItemStack stack) |
int |
size() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final EmptyInventory INSTANCE
public void clear()
clear in interface net.minecraft.util.Clearablepublic int size()
size in interface net.minecraft.inventory.Inventorypublic boolean isEmpty()
isEmpty in interface net.minecraft.inventory.Inventorypublic net.minecraft.item.ItemStack getStack(int slot)
getStack in interface net.minecraft.inventory.Inventorypublic net.minecraft.item.ItemStack removeStack(int slot,
int count)
removeStack in interface net.minecraft.inventory.Inventorypublic net.minecraft.item.ItemStack removeStack(int slot)
removeStack in interface net.minecraft.inventory.Inventorypublic void setStack(int slot,
net.minecraft.item.ItemStack stack)
setStack in interface net.minecraft.inventory.Inventorypublic void markDirty()
markDirty in interface net.minecraft.inventory.Inventorypublic boolean canPlayerUse(net.minecraft.entity.player.PlayerEntity player)
canPlayerUse in interface net.minecraft.inventory.Inventory