use of net.mcft.copy.betterstorage.tile.entity.TileEntityContainer in project BetterStorage by copygirl.
the class TileContainerBetterStorage method getPickBlock.
@Override
public ItemStack getPickBlock(MovingObjectPosition target, World world, int x, int y, int z) {
TileEntityContainer container = getContainer(world, x, y, z);
if (container instanceof IHasAttachments) {
ItemStack pick = ((IHasAttachments) container).getAttachments().pick(target);
if (pick != null)
return pick;
}
ItemStack pick = super.getPickBlock(target, world, x, y, z);
return container.onPickBlock(pick, target);
}
Aggregations