public class VanillaInventoryCodeHooks
extends java.lang.Object
Constructor and Description |
---|
VanillaInventoryCodeHooks() |
Modifier and Type | Method and Description |
---|---|
static boolean |
dropperInsertHook(World world,
BlockPos pos,
DispenserTileEntity dropper,
int slot,
ItemStack stack)
Copied from BlockDropper#dispense and added capability support
|
static java.lang.Boolean |
extractHook(IHopper dest)
Copied from TileEntityHopper#captureDroppedItems and added capability support
|
private static LazyOptional<org.apache.commons.lang3.tuple.Pair<IItemHandler,java.lang.Object>> |
getItemHandler(IHopper hopper,
Direction hopperFacing) |
static LazyOptional<org.apache.commons.lang3.tuple.Pair<IItemHandler,java.lang.Object>> |
getItemHandler(World worldIn,
double x,
double y,
double z,
Direction side) |
static boolean |
insertHook(HopperTileEntity hopper)
Copied from TileEntityHopper#transferItemsOut and added capability support
|
private static ItemStack |
insertStack(TileEntity source,
java.lang.Object destination,
IItemHandler destInventory,
ItemStack stack,
int slot)
Copied from TileEntityHopper#insertStack and added capability support
|
private static boolean |
isEmpty(IItemHandler itemHandler) |
private static boolean |
isFull(IItemHandler itemHandler) |
private static ItemStack |
putStackInInventoryAllSlots(TileEntity source,
java.lang.Object destination,
IItemHandler destInventory,
ItemStack stack) |
@Nullable public static java.lang.Boolean extractHook(IHopper dest)
public static boolean dropperInsertHook(World world, BlockPos pos, DispenserTileEntity dropper, int slot, @Nonnull ItemStack stack)
public static boolean insertHook(HopperTileEntity hopper)
private static ItemStack putStackInInventoryAllSlots(TileEntity source, java.lang.Object destination, IItemHandler destInventory, ItemStack stack)
private static ItemStack insertStack(TileEntity source, java.lang.Object destination, IItemHandler destInventory, ItemStack stack, int slot)
private static LazyOptional<org.apache.commons.lang3.tuple.Pair<IItemHandler,java.lang.Object>> getItemHandler(IHopper hopper, Direction hopperFacing)
private static boolean isFull(IItemHandler itemHandler)
private static boolean isEmpty(IItemHandler itemHandler)
public static LazyOptional<org.apache.commons.lang3.tuple.Pair<IItemHandler,java.lang.Object>> getItemHandler(World worldIn, double x, double y, double z, Direction side)