public interface IItemSource
| Modifier and Type | Method and Description |
|---|---|
static IItemSource |
fromInventory(IInventory inv) |
static IItemSource |
fromPlayer(EntityPlayerMP player) |
Map<ItemStack,Integer> |
take(Predicate<ItemStack> predicate,
boolean simulate,
int count)
We are probably not going to need to get a lot of items from this method
so I don't care about the overhead of storing all fetched items even if downstream code doesn't need it
|
default boolean |
takeAll(ItemStack stack,
boolean simulate) |
default boolean |
takeAll(Predicate<ItemStack> predicate,
boolean simulate,
int count) |
default boolean |
takeOne(ItemStack stack,
boolean simulate) |
default ItemStack |
takeOne(Predicate<ItemStack> predicate,
boolean simulate) |
@Nonnull Map<ItemStack,Integer> take(Predicate<ItemStack> predicate, boolean simulate, int count)
default boolean takeOne(ItemStack stack, boolean simulate)
default boolean takeAll(ItemStack stack, boolean simulate)
static IItemSource fromPlayer(EntityPlayerMP player)
static IItemSource fromInventory(IInventory inv)